Skip to content

Commit 7bf3228

Browse files
author
Bram
authored
[8.x] Add types to arrays in boilerplate (laravel#5738)
* Add more specific types * Update Authenticate.php * Update Authenticate.php
1 parent e35899f commit 7bf3228

9 files changed

+11
-11
lines changed

app/Http/Kernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Kernel extends HttpKernel
1111
*
1212
* These middleware are run during every request to your application.
1313
*
14-
* @var array
14+
* @var string[]
1515
*/
1616
protected $middleware = [
1717
// \App\Http\Middleware\TrustHosts::class,
@@ -26,7 +26,7 @@ class Kernel extends HttpKernel
2626
/**
2727
* The application's route middleware groups.
2828
*
29-
* @var array
29+
* @var array<string, string[]>
3030
*/
3131
protected $middlewareGroups = [
3232
'web' => [
@@ -51,7 +51,7 @@ class Kernel extends HttpKernel
5151
*
5252
* These middleware may be assigned to groups or used individually.
5353
*
54-
* @var array
54+
* @var array<string, string>
5555
*/
5656
protected $routeMiddleware = [
5757
'auth' => \App\Http\Middleware\Authenticate::class,

app/Http/Middleware/EncryptCookies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class EncryptCookies extends Middleware
99
/**
1010
* The names of the cookies that should not be encrypted.
1111
*
12-
* @var array
12+
* @var string[]
1313
*/
1414
protected $except = [
1515
//

app/Http/Middleware/PreventRequestsDuringMaintenance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PreventRequestsDuringMaintenance extends Middleware
99
/**
1010
* The URIs that should be reachable while maintenance mode is enabled.
1111
*
12-
* @var array
12+
* @var string[]
1313
*/
1414
protected $except = [
1515
//

app/Http/Middleware/TrimStrings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class TrimStrings extends Middleware
99
/**
1010
* The names of the attributes that should not be trimmed.
1111
*
12-
* @var array
12+
* @var string[]
1313
*/
1414
protected $except = [
1515
'current_password',

app/Http/Middleware/TrustHosts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class TrustHosts extends Middleware
99
/**
1010
* Get the host patterns that should be trusted.
1111
*
12-
* @return array
12+
* @return string[]
1313
*/
1414
public function hosts()
1515
{

app/Http/Middleware/TrustProxies.php

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

app/Http/Middleware/VerifyCsrfToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class VerifyCsrfToken extends Middleware
99
/**
1010
* The URIs that should be excluded from CSRF verification.
1111
*
12-
* @var array
12+
* @var string[]
1313
*/
1414
protected $except = [
1515
//

app/Providers/AuthServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AuthServiceProvider extends ServiceProvider
1010
/**
1111
* The policy mappings for the application.
1212
*
13-
* @var array
13+
* @var array<string, string>
1414
*/
1515
protected $policies = [
1616
// 'App\Models\Model' => 'App\Policies\ModelPolicy',

app/Providers/EventServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class EventServiceProvider extends ServiceProvider
1212
/**
1313
* The event listener mappings for the application.
1414
*
15-
* @var array
15+
* @var array<string, string[]>
1616
*/
1717
protected $listen = [
1818
Registered::class => [

0 commit comments

Comments
 (0)