[8.x] Add types to arrays in boilerplate (#5738)
* Add more specific types * Update Authenticate.php * Update Authenticate.php
This commit is contained in:
@@ -11,7 +11,7 @@ class Kernel extends HttpKernel
|
||||
*
|
||||
* These middleware are run during every request to your application.
|
||||
*
|
||||
* @var array
|
||||
* @var string[]
|
||||
*/
|
||||
protected $middleware = [
|
||||
// \App\Http\Middleware\TrustHosts::class,
|
||||
@@ -26,7 +26,7 @@ class Kernel extends HttpKernel
|
||||
/**
|
||||
* The application's route middleware groups.
|
||||
*
|
||||
* @var array
|
||||
* @var array<string, string[]>
|
||||
*/
|
||||
protected $middlewareGroups = [
|
||||
'web' => [
|
||||
@@ -51,7 +51,7 @@ class Kernel extends HttpKernel
|
||||
*
|
||||
* These middleware may be assigned to groups or used individually.
|
||||
*
|
||||
* @var array
|
||||
* @var array<string, string>
|
||||
*/
|
||||
protected $routeMiddleware = [
|
||||
'auth' => \App\Http\Middleware\Authenticate::class,
|
||||
|
||||
@@ -9,7 +9,7 @@ class EncryptCookies extends Middleware
|
||||
/**
|
||||
* The names of the cookies that should not be encrypted.
|
||||
*
|
||||
* @var array
|
||||
* @var string[]
|
||||
*/
|
||||
protected $except = [
|
||||
//
|
||||
|
||||
@@ -9,7 +9,7 @@ class PreventRequestsDuringMaintenance extends Middleware
|
||||
/**
|
||||
* The URIs that should be reachable while maintenance mode is enabled.
|
||||
*
|
||||
* @var array
|
||||
* @var string[]
|
||||
*/
|
||||
protected $except = [
|
||||
//
|
||||
|
||||
@@ -9,7 +9,7 @@ class TrimStrings extends Middleware
|
||||
/**
|
||||
* The names of the attributes that should not be trimmed.
|
||||
*
|
||||
* @var array
|
||||
* @var string[]
|
||||
*/
|
||||
protected $except = [
|
||||
'current_password',
|
||||
|
||||
@@ -9,7 +9,7 @@ class TrustHosts extends Middleware
|
||||
/**
|
||||
* Get the host patterns that should be trusted.
|
||||
*
|
||||
* @return array
|
||||
* @return string[]
|
||||
*/
|
||||
public function hosts()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ class TrustProxies extends Middleware
|
||||
/**
|
||||
* The trusted proxies for this application.
|
||||
*
|
||||
* @var array|string|null
|
||||
* @var string[]|string|null
|
||||
*/
|
||||
protected $proxies;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class VerifyCsrfToken extends Middleware
|
||||
/**
|
||||
* The URIs that should be excluded from CSRF verification.
|
||||
*
|
||||
* @var array
|
||||
* @var string[]
|
||||
*/
|
||||
protected $except = [
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user