Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 811497b

Browse files
authored
[9.x] Supports flushing Validator state (#356)
* [9.x] Supports flushing Validator state PR: laravel/framework#56852 Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip --------- Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent c6efdf2 commit 811497b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"require-dev": {
4646
"fakerphp/faker": "^1.24",
47-
"laravel/framework": "^11.45.2",
47+
"laravel/framework": "^11.45.3",
4848
"laravel/pint": "^1.24",
4949
"laravel/serializable-closure": "^1.3|^2.0.4",
5050
"mockery/mockery": "^1.6.10",
@@ -57,7 +57,7 @@
5757
},
5858
"conflict": {
5959
"brianium/paratest": "<7.3.0|>=8.0.0",
60-
"laravel/framework": "<11.45.2|>=12.0.0",
60+
"laravel/framework": "<11.45.3|>=12.0.0",
6161
"laravel/serializable-closure": "<1.3.0|>=2.0.0 <2.0.3|>=3.0.0",
6262
"nunomaduro/collision": "<8.0.0|>=9.0.0",
6363
"orchestra/testbench-dusk": "<9.10.0|>=10.0.0",
@@ -67,7 +67,7 @@
6767
"ext-pcntl": "Required to use all features of the console signal trapping.",
6868
"brianium/paratest": "Allow using parallel testing (^7.3).",
6969
"fakerphp/faker": "Allow using Faker for testing (^1.23).",
70-
"laravel/framework": "Required for testing (^11.44.2).",
70+
"laravel/framework": "Required for testing (^11.45.3).",
7171
"mockery/mockery": "Allow using Mockery for testing (^1.6).",
7272
"nunomaduro/collision": "Allow using Laravel style tests output and parallel testing (^8.0).",
7373
"orchestra/testbench-dusk": "Allow using Laravel Dusk for testing (^9.10).",

src/Foundation/Application.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
use Illuminate\Support\EncodedHtmlString;
3131
use Illuminate\Support\Once;
3232
use Illuminate\Support\Sleep;
33+
use Illuminate\Validation\Validator;
3334
use Illuminate\View\Component;
3435
use Orchestra\Testbench\Concerns\CreatesApplication;
3536
use Orchestra\Testbench\Console\Commander;
@@ -254,6 +255,7 @@ public static function flushState(object $instance): void
254255
TrimStrings::flushState();
255256
TrustProxies::flushState();
256257
TrustHosts::flushState();
258+
Validator::flushState();
257259
ValidateCsrfToken::flushState();
258260
WorkCommand::flushState();
259261
}

0 commit comments

Comments
 (0)