Skip to content

Commit 7cf1379

Browse files
author
DKravtsov
committed
updated framework and packages
1 parent 1d087e6 commit 7cf1379

36 files changed

+2001
-1610
lines changed

app/Console/Kernel.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@
99

1010
class Kernel extends ConsoleKernel
1111
{
12-
/**
13-
* The Artisan commands provided by your application.
14-
*
15-
* @var array
16-
*/
17-
protected $commands = [];
18-
1912
/**
2013
* Define the application's command schedule.
2114
* @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter

app/Exceptions/Handler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ class Handler extends ExceptionHandler
1212
/**
1313
* A list of the exception types that are not reported.
1414
*
15-
* @var string[]
15+
* @var array<int, class-string<Throwable>>
1616
*/
1717
protected $dontReport = [];
1818

1919
/**
2020
* A list of the inputs that are never flashed for validation exceptions.
2121
*
22-
* @var string[]
22+
* @var array<int, string>
2323
*/
2424
protected $dontFlash = [
2525
'current_password',

app/Http/Kernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Kernel extends HttpKernel
1313
*
1414
* These middleware are run during every request to your application.
1515
*
16-
* @var array
16+
* @var array<int, class-string|string>
1717
*/
1818
protected $middleware = [
1919
// \App\Http\Middleware\TrustHosts::class,
@@ -28,7 +28,7 @@ class Kernel extends HttpKernel
2828
/**
2929
* The application's route middleware groups.
3030
*
31-
* @var array
31+
* @var array<string, array<int, class-string|string>>
3232
*/
3333
protected $middlewareGroups = [
3434
'web' => [
@@ -53,7 +53,7 @@ class Kernel extends HttpKernel
5353
*
5454
* These middleware may be assigned to groups or used individually.
5555
*
56-
* @var array
56+
* @var array<string, class-string|string>
5757
*/
5858
protected $routeMiddleware = [
5959
'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
@@ -11,7 +11,7 @@ class EncryptCookies extends Middleware
1111
/**
1212
* The names of the cookies that should not be encrypted.
1313
*
14-
* @var array
14+
* @var array<int, string>
1515
*/
1616
protected $except = [];
1717
}

app/Http/Middleware/PreventRequestsDuringMaintenance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PreventRequestsDuringMaintenance extends Middleware
1111
/**
1212
* The URIs that should be reachable while maintenance mode is enabled.
1313
*
14-
* @var array
14+
* @var array<int, string>
1515
*/
1616
protected $except = [];
1717
}

app/Http/Middleware/TrimStrings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class TrimStrings extends Middleware
1111
/**
1212
* The names of the attributes that should not be trimmed.
1313
*
14-
* @var array
14+
* @var array<int, string>
1515
*/
1616
protected $except = [
1717
'current_password',

app/Http/Middleware/TrustProxies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TrustProxies extends Middleware
1212
/**
1313
* The trusted proxies for this application.
1414
*
15-
* @var array|string|null
15+
* @var array<int, string>|string|null
1616
*/
1717
protected $proxies;
1818

app/Http/Middleware/VerifyCsrfToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class VerifyCsrfToken extends Middleware
1111
/**
1212
* The URIs that should be excluded from CSRF verification.
1313
*
14-
* @var array
14+
* @var array<int, string>
1515
*/
1616
protected $except = [];
1717
}

app/Models/User.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class User extends Authenticatable
1818
/**
1919
* The attributes that are mass assignable.
2020
*
21-
* @var string[]
21+
* @var array<int, string>
2222
*/
2323
protected $fillable = [
2424
'name',
@@ -27,19 +27,19 @@ class User extends Authenticatable
2727
];
2828

2929
/**
30-
* The attributes that should be hidden for arrays.
30+
* The attributes that should be hidden for serialization.
3131
*
32-
* @var array
32+
* @var array<int, string>
3333
*/
3434
protected $hidden = [
3535
'password',
3636
'remember_token',
3737
];
3838

3939
/**
40-
* The attributes that should be cast to native types.
40+
* The attributes that should be cast.
4141
*
42-
* @var array
42+
* @var array<string, string>
4343
*/
4444
protected $casts = [
4545
'email_verified_at' => 'datetime',

app/Providers/AuthServiceProvider.php

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

0 commit comments

Comments
 (0)