fix phpstan after Laravel update

This commit is contained in:
Dan Harrin
2024-03-17 21:32:13 +00:00
parent a0873e9f56
commit ccbacb0569
2 changed files with 68 additions and 65 deletions
Generated
+61 -62
View File
@@ -9,16 +9,16 @@
"packages-dev": [
{
"name": "anourvalar/eloquent-serialize",
"version": "1.2.20",
"version": "1.2.21",
"source": {
"type": "git",
"url": "https://github.com/AnourValar/eloquent-serialize.git",
"reference": "f8408e92768ff295990e3a1edb7e47950e008c63"
"reference": "39766b21c8de0dbbff8a9368c2579502fd1d248e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/AnourValar/eloquent-serialize/zipball/f8408e92768ff295990e3a1edb7e47950e008c63",
"reference": "f8408e92768ff295990e3a1edb7e47950e008c63",
"url": "https://api.github.com/repos/AnourValar/eloquent-serialize/zipball/39766b21c8de0dbbff8a9368c2579502fd1d248e",
"reference": "39766b21c8de0dbbff8a9368c2579502fd1d248e",
"shasum": ""
},
"require": {
@@ -69,9 +69,9 @@
],
"support": {
"issues": "https://github.com/AnourValar/eloquent-serialize/issues",
"source": "https://github.com/AnourValar/eloquent-serialize/tree/1.2.20"
"source": "https://github.com/AnourValar/eloquent-serialize/tree/1.2.21"
},
"time": "2024-03-08T14:48:54+00:00"
"time": "2024-03-15T14:33:22+00:00"
},
{
"name": "aws/aws-crt-php",
@@ -129,16 +129,16 @@
},
{
"name": "aws/aws-sdk-php",
"version": "3.300.17",
"version": "3.301.1",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
"reference": "ddd93079be1646e7db727d078f4c5beee1ddb052"
"reference": "0a910d2b35e7087337cdf3569dc9b6ce232aafba"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/ddd93079be1646e7db727d078f4c5beee1ddb052",
"reference": "ddd93079be1646e7db727d078f4c5beee1ddb052",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/0a910d2b35e7087337cdf3569dc9b6ce232aafba",
"reference": "0a910d2b35e7087337cdf3569dc9b6ce232aafba",
"shasum": ""
},
"require": {
@@ -218,9 +218,9 @@
"support": {
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
"issues": "https://github.com/aws/aws-sdk-php/issues",
"source": "https://github.com/aws/aws-sdk-php/tree/3.300.17"
"source": "https://github.com/aws/aws-sdk-php/tree/3.301.1"
},
"time": "2024-03-13T18:08:32+00:00"
"time": "2024-03-15T18:14:42+00:00"
},
{
"name": "blade-ui-kit/blade-heroicons",
@@ -2507,16 +2507,16 @@
},
{
"name": "laravel/framework",
"version": "v11.0.5",
"version": "v11.0.7",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "9d9d74b1b690c944b8a3d0ebaf28f79101da1589"
"reference": "28eabe9dcdcb017a21ce226eda4538c5c8c93b1c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/9d9d74b1b690c944b8a3d0ebaf28f79101da1589",
"reference": "9d9d74b1b690c944b8a3d0ebaf28f79101da1589",
"url": "https://api.github.com/repos/laravel/framework/zipball/28eabe9dcdcb017a21ce226eda4538c5c8c93b1c",
"reference": "28eabe9dcdcb017a21ce226eda4538c5c8c93b1c",
"shasum": ""
},
"require": {
@@ -2708,7 +2708,7 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2024-03-13T16:21:22+00:00"
"time": "2024-03-15T23:17:58+00:00"
},
{
"name": "laravel/pint",
@@ -3238,16 +3238,16 @@
},
{
"name": "league/flysystem",
"version": "3.25.0",
"version": "3.25.1",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
"reference": "4c44347133618cccd9b3df1729647a1577b4ad99"
"reference": "abbd664eb4381102c559d358420989f835208f18"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/4c44347133618cccd9b3df1729647a1577b4ad99",
"reference": "4c44347133618cccd9b3df1729647a1577b4ad99",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/abbd664eb4381102c559d358420989f835208f18",
"reference": "abbd664eb4381102c559d358420989f835208f18",
"shasum": ""
},
"require": {
@@ -3312,7 +3312,7 @@
],
"support": {
"issues": "https://github.com/thephpleague/flysystem/issues",
"source": "https://github.com/thephpleague/flysystem/tree/3.25.0"
"source": "https://github.com/thephpleague/flysystem/tree/3.25.1"
},
"funding": [
{
@@ -3324,20 +3324,20 @@
"type": "github"
}
],
"time": "2024-03-09T17:06:45+00:00"
"time": "2024-03-16T12:53:19+00:00"
},
{
"name": "league/flysystem-aws-s3-v3",
"version": "3.24.0",
"version": "3.25.1",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem-aws-s3-v3.git",
"reference": "809474e37b7fb1d1f8bcc0f8a98bc1cae99aa513"
"reference": "6a5be0e6d6a93574e80805c9cc108a4b63c824d8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/809474e37b7fb1d1f8bcc0f8a98bc1cae99aa513",
"reference": "809474e37b7fb1d1f8bcc0f8a98bc1cae99aa513",
"url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/6a5be0e6d6a93574e80805c9cc108a4b63c824d8",
"reference": "6a5be0e6d6a93574e80805c9cc108a4b63c824d8",
"shasum": ""
},
"require": {
@@ -3377,7 +3377,7 @@
"storage"
],
"support": {
"source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/3.24.0"
"source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/3.25.1"
},
"funding": [
{
@@ -3389,20 +3389,20 @@
"type": "github"
}
],
"time": "2024-01-26T18:43:21+00:00"
"time": "2024-03-15T19:58:44+00:00"
},
{
"name": "league/flysystem-local",
"version": "3.23.1",
"version": "3.25.1",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem-local.git",
"reference": "b884d2bf9b53bb4804a56d2df4902bb51e253f00"
"reference": "61a6a90d6e999e4ddd9ce5adb356de0939060b92"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/b884d2bf9b53bb4804a56d2df4902bb51e253f00",
"reference": "b884d2bf9b53bb4804a56d2df4902bb51e253f00",
"url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/61a6a90d6e999e4ddd9ce5adb356de0939060b92",
"reference": "61a6a90d6e999e4ddd9ce5adb356de0939060b92",
"shasum": ""
},
"require": {
@@ -3436,8 +3436,7 @@
"local"
],
"support": {
"issues": "https://github.com/thephpleague/flysystem-local/issues",
"source": "https://github.com/thephpleague/flysystem-local/tree/3.23.1"
"source": "https://github.com/thephpleague/flysystem-local/tree/3.25.1"
},
"funding": [
{
@@ -3449,7 +3448,7 @@
"type": "github"
}
],
"time": "2024-01-26T18:25:23+00:00"
"time": "2024-03-15T19:58:44+00:00"
},
{
"name": "league/mime-type-detection",
@@ -5157,16 +5156,16 @@
},
{
"name": "pestphp/pest",
"version": "v2.34.2",
"version": "v2.34.4",
"source": {
"type": "git",
"url": "https://github.com/pestphp/pest.git",
"reference": "853f6efce6bc86636f48a0e921a44ccee9a66cf3"
"reference": "6a1161ead830294ef8e21fab83c0bd118b0df7cc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pestphp/pest/zipball/853f6efce6bc86636f48a0e921a44ccee9a66cf3",
"reference": "853f6efce6bc86636f48a0e921a44ccee9a66cf3",
"url": "https://api.github.com/repos/pestphp/pest/zipball/6a1161ead830294ef8e21fab83c0bd118b0df7cc",
"reference": "6a1161ead830294ef8e21fab83c0bd118b0df7cc",
"shasum": ""
},
"require": {
@@ -5176,10 +5175,10 @@
"pestphp/pest-plugin": "^2.1.1",
"pestphp/pest-plugin-arch": "^2.7.0",
"php": "^8.1.0",
"phpunit/phpunit": "^10.5.12"
"phpunit/phpunit": "^10.5.13"
},
"conflict": {
"phpunit/phpunit": ">10.5.12",
"phpunit/phpunit": ">10.5.13",
"sebastian/exporter": "<5.1.0",
"webmozart/assert": "<1.11.0"
},
@@ -5249,7 +5248,7 @@
],
"support": {
"issues": "https://github.com/pestphp/pest/issues",
"source": "https://github.com/pestphp/pest/tree/v2.34.2"
"source": "https://github.com/pestphp/pest/tree/v2.34.4"
},
"funding": [
{
@@ -5261,7 +5260,7 @@
"type": "github"
}
],
"time": "2024-03-11T18:05:47+00:00"
"time": "2024-03-14T19:44:18+00:00"
},
{
"name": "pestphp/pest-plugin",
@@ -6403,16 +6402,16 @@
},
{
"name": "phpunit/phpunit",
"version": "10.5.12",
"version": "10.5.13",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "41a9886b85ac7bf3929853baf96b95361cd69d2b"
"reference": "20a63fc1c6db29b15da3bd02d4b6cf59900088a7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/41a9886b85ac7bf3929853baf96b95361cd69d2b",
"reference": "41a9886b85ac7bf3929853baf96b95361cd69d2b",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/20a63fc1c6db29b15da3bd02d4b6cf59900088a7",
"reference": "20a63fc1c6db29b15da3bd02d4b6cf59900088a7",
"shasum": ""
},
"require": {
@@ -6484,7 +6483,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.12"
"source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.13"
},
"funding": [
{
@@ -6500,7 +6499,7 @@
"type": "tidelift"
}
],
"time": "2024-03-09T12:04:07+00:00"
"time": "2024-03-12T15:37:41+00:00"
},
{
"name": "pimple/pimple",
@@ -7018,16 +7017,16 @@
},
{
"name": "psy/psysh",
"version": "v0.12.0",
"version": "v0.12.2",
"source": {
"type": "git",
"url": "https://github.com/bobthecow/psysh.git",
"reference": "750bf031a48fd07c673dbe3f11f72362ea306d0d"
"reference": "9185c66c2165bbf4d71de78a69dccf4974f9538d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/750bf031a48fd07c673dbe3f11f72362ea306d0d",
"reference": "750bf031a48fd07c673dbe3f11f72362ea306d0d",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/9185c66c2165bbf4d71de78a69dccf4974f9538d",
"reference": "9185c66c2165bbf4d71de78a69dccf4974f9538d",
"shasum": ""
},
"require": {
@@ -7091,9 +7090,9 @@
],
"support": {
"issues": "https://github.com/bobthecow/psysh/issues",
"source": "https://github.com/bobthecow/psysh/tree/v0.12.0"
"source": "https://github.com/bobthecow/psysh/tree/v0.12.2"
},
"time": "2023-12-20T15:28:09+00:00"
"time": "2024-03-17T01:53:00+00:00"
},
{
"name": "ralouphie/getallheaders",
@@ -7322,16 +7321,16 @@
},
{
"name": "rector/rector",
"version": "1.0.2",
"version": "1.0.3",
"source": {
"type": "git",
"url": "https://github.com/rectorphp/rector.git",
"reference": "7596fa6da06c6a20c012efe6bb3d9188a9113b11"
"reference": "c59507a9090b465d65e1aceed91e5b81986e375b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/7596fa6da06c6a20c012efe6bb3d9188a9113b11",
"reference": "7596fa6da06c6a20c012efe6bb3d9188a9113b11",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/c59507a9090b465d65e1aceed91e5b81986e375b",
"reference": "c59507a9090b465d65e1aceed91e5b81986e375b",
"shasum": ""
},
"require": {
@@ -7366,7 +7365,7 @@
],
"support": {
"issues": "https://github.com/rectorphp/rector/issues",
"source": "https://github.com/rectorphp/rector/tree/1.0.2"
"source": "https://github.com/rectorphp/rector/tree/1.0.3"
},
"funding": [
{
@@ -7374,7 +7373,7 @@
"type": "github"
}
],
"time": "2024-03-03T12:32:31+00:00"
"time": "2024-03-14T15:04:18+00:00"
},
{
"name": "ryangjchandler/blade-capture-directive",
@@ -211,11 +211,15 @@ class BaseFileUpload extends Field
protected function callAfterStateUpdatedHook(Closure $hook): void
{
$state = $this->getState();
/** @var array<string | TemporaryUploadedFile> $state */
$state = $this->getState() ?? [];
/** @var array<string | TemporaryUploadedFile> $oldState */
$oldState = $this->getOldState() ?? [];
$this->evaluate($hook, [
'state' => $this->isMultiple() ? $state : Arr::first($state ?? []),
'old' => $this->isMultiple() ? $this->getOldState() : Arr::first($this->getOldState() ?? []),
'state' => $this->isMultiple() ? $state : Arr::first($state),
'old' => $this->isMultiple() ? $oldState : Arr::first($oldState),
]);
}