Skip to content

Commit b685a7a

Browse files
authored
Update array generic types to match laravel/laravel class implementations (#45795)
1 parent 6edfb91 commit b685a7a

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/Illuminate/Cookie/Middleware/EncryptCookies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class EncryptCookies
2222
/**
2323
* The names of the cookies that should not be encrypted.
2424
*
25-
* @var array
25+
* @var array<int, string>
2626
*/
2727
protected $except = [];
2828

src/Illuminate/Foundation/Http/Kernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,21 @@ class Kernel implements KernelContract
5151
/**
5252
* The application's middleware stack.
5353
*
54-
* @var array
54+
* @var array<int, class-string|string>
5555
*/
5656
protected $middleware = [];
5757

5858
/**
5959
* The application's route middleware groups.
6060
*
61-
* @var array
61+
* @var array<string, array<int, class-string|string>>
6262
*/
6363
protected $middlewareGroups = [];
6464

6565
/**
6666
* The application's route middleware.
6767
*
68-
* @var array
68+
* @var array<string, class-string|string>
6969
*/
7070
protected $routeMiddleware = [];
7171

src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class PreventRequestsDuringMaintenance
1919
/**
2020
* The URIs that should be accessible while maintenance mode is enabled.
2121
*
22-
* @var array
22+
* @var array<int, string>
2323
*/
2424
protected $except = [];
2525

src/Illuminate/Foundation/Http/Middleware/TrimStrings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TrimStrings extends TransformsRequest
1616
/**
1717
* The attributes that should not be trimmed.
1818
*
19-
* @var array
19+
* @var array<int, string>
2020
*/
2121
protected $except = [
2222
//

src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class VerifyCsrfToken
3434
/**
3535
* The URIs that should be excluded from CSRF verification.
3636
*
37-
* @var array
37+
* @var array<int, string>
3838
*/
3939
protected $except = [];
4040

src/Illuminate/Foundation/Support/Providers/EventServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class EventServiceProvider extends ServiceProvider
1111
/**
1212
* The event handler mappings for the application.
1313
*
14-
* @var array
14+
* @var array<string, array<int, string>>
1515
*/
1616
protected $listen = [];
1717

src/Illuminate/Http/Middleware/TrustProxies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TrustProxies
1010
/**
1111
* The trusted proxies for the application.
1212
*
13-
* @var array|string|null
13+
* @var array<int, string>|string|null
1414
*/
1515
protected $proxies;
1616

0 commit comments

Comments
 (0)