Skip to content

Commit

Permalink
chore: Upgrade dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiCO2k committed Dec 10, 2023
1 parent 7ef1a83 commit 8189b92
Show file tree
Hide file tree
Showing 16 changed files with 2,267 additions and 1,704 deletions.
6 changes: 3 additions & 3 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Kernel extends HttpKernel
*
* These middleware are run during every request to your application.
*
* @var array
* @var array<int, class-string>
*/
protected $middleware = [
\App\Http\Middleware\TrustProxies::class,
Expand All @@ -25,7 +25,7 @@ class Kernel extends HttpKernel
/**
* The application's route middleware groups.
*
* @var array
* @var array<string, array<int, class-string|string>>
*/
protected $middlewareGroups = [
'web' => [
Expand All @@ -50,7 +50,7 @@ class Kernel extends HttpKernel
*
* These middleware may be assigned to groups or used individually.
*
* @var array
* @var array<string, class-string>
*/
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/EncryptCookies.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class EncryptCookies extends Middleware
/**
* The names of the cookies that should not be encrypted.
*
* @var array
* @var array<int, string>
*/
protected $except = [
];
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/PreventRequestsDuringMaintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PreventRequestsDuringMaintenance extends Middleware
/**
* The URIs that should be reachable while maintenance mode is enabled.
*
* @var array
* @var array<int, string>
*/
protected $except = [
];
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/TrimStrings.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class TrimStrings extends Middleware
/**
* The names of the attributes that should not be trimmed.
*
* @var array
* @var array<int, string>
*/
protected $except = [
'current_password',
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/TrustProxies.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TrustProxies extends Middleware
/**
* The trusted proxies for this application.
*
* @var array|string|null
* @var array<int, string>|string|null
*/
protected $proxies;

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/VerifyCsrfToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class VerifyCsrfToken extends Middleware
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
* @var array<int, string>
*/
protected $except = [
];
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/EventServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class EventServiceProvider extends ServiceProvider
/**
* The event listener mappings for the application.
*
* @var array
* @var array<class-string, array<int, class-string>>
*/
protected $listen = [
Registered::class => [
Expand Down
4 changes: 2 additions & 2 deletions app/Ssr.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class Ssr
*/
public static function register(): void
{
app()->singleton(self::class, fn () => new static());
app()->singleton(self::class, fn () => new self());
}

/**
Expand All @@ -23,7 +23,7 @@ public static function register(): void
* @param array<string, mixed> $page
* @return string|array<string, mixed>
*/
public function get(array $page, string $item = null, bool $cachable = true): array|string
public function get(array $page, ?string $item = null, bool $cachable = true): array|string
{
$key = md5((string) json_encode($page));
$data = [];
Expand Down
2 changes: 1 addition & 1 deletion app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @param array<string, mixed> $page
* @return string|array<string, mixed>
*/
function ssr(array $page, string $item = null): array|string
function ssr(array $page, ?string $item = null): array|string
{
return app(Ssr::class)->get($page, $item);
}
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"aschmelyun/basic-feeds": "^1.0",
"guzzlehttp/guzzle": "^7.0.1",
"inertiajs/inertia-laravel": "^0.6.9",
"laravel/framework": "10.0",
"laravel/framework": "^10.0",
"laravel/tinker": "^2.7",
"spatie/schema-org": "^3.8",
"tightenco/ziggy": "^1.4"
Expand All @@ -20,7 +20,7 @@
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.1",
"nunomaduro/larastan": "^2.0",
"larastan/larastan": "^2.0",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"phpunit/phpunit": "^10.0",
Expand Down
Loading

0 comments on commit 8189b92

Please sign in to comment.