diff --git a/composer.json b/composer.json index f41e3813a..0dfe11218 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "icewind/searchdav": "^3.1.0", "icewind/streams": "^0.7.7", "kornrunner/blurhash": "^1.2", - "laravel/serializable-closure": "^1.3.3", + "laravel/serializable-closure": "^1.3.5", "mexitek/phpcolors": "^1.0", "microsoft/azure-storage-blob": "^1.5.4", "mlocati/ip-lib": "^1.18", diff --git a/composer.lock b/composer.lock index 7ebe8a923..923724c27 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2acd6ae014096370fb40aaa3a5c5bfba", + "content-hash": "4d47a0bdb44a993e53e4f78a7bd12878", "packages": [ { "name": "aws/aws-crt-php", @@ -1683,26 +1683,27 @@ }, { "name": "laravel/serializable-closure", - "version": "v1.3.3", + "version": "v1.3.5", "source": { "type": "git", "url": "https://github.com/laravel/serializable-closure.git", - "reference": "3dbf8a8e914634c48d389c1234552666b3d43754" + "reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/3dbf8a8e914634c48d389c1234552666b3d43754", - "reference": "3dbf8a8e914634c48d389c1234552666b3d43754", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c", + "reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c", "shasum": "" }, "require": { "php": "^7.3|^8.0" }, "require-dev": { - "nesbot/carbon": "^2.61", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0", + "nesbot/carbon": "^2.61|^3.0", "pestphp/pest": "^1.21.3", "phpstan/phpstan": "^1.8.2", - "symfony/var-dumper": "^5.4.11" + "symfony/var-dumper": "^5.4.11|^6.2.0|^7.0.0" }, "type": "library", "extra": { @@ -1739,7 +1740,7 @@ "issues": "https://github.com/laravel/serializable-closure/issues", "source": "https://github.com/laravel/serializable-closure" }, - "time": "2023-11-08T14:08:06+00:00" + "time": "2024-09-23T13:33:08+00:00" }, { "name": "lcobucci/clock", diff --git a/composer/installed.json b/composer/installed.json index 5f15c06cb..82b71f0d1 100644 --- a/composer/installed.json +++ b/composer/installed.json @@ -1746,29 +1746,30 @@ }, { "name": "laravel/serializable-closure", - "version": "v1.3.3", - "version_normalized": "1.3.3.0", + "version": "v1.3.5", + "version_normalized": "1.3.5.0", "source": { "type": "git", "url": "https://github.com/laravel/serializable-closure.git", - "reference": "3dbf8a8e914634c48d389c1234552666b3d43754" + "reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/3dbf8a8e914634c48d389c1234552666b3d43754", - "reference": "3dbf8a8e914634c48d389c1234552666b3d43754", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c", + "reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c", "shasum": "" }, "require": { "php": "^7.3|^8.0" }, "require-dev": { - "nesbot/carbon": "^2.61", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0", + "nesbot/carbon": "^2.61|^3.0", "pestphp/pest": "^1.21.3", "phpstan/phpstan": "^1.8.2", - "symfony/var-dumper": "^5.4.11" + "symfony/var-dumper": "^5.4.11|^6.2.0|^7.0.0" }, - "time": "2023-11-08T14:08:06+00:00", + "time": "2024-09-23T13:33:08+00:00", "type": "library", "extra": { "branch-alias": { diff --git a/composer/installed.php b/composer/installed.php index d47444c37..eb3940b36 100644 --- a/composer/installed.php +++ b/composer/installed.php @@ -218,9 +218,9 @@ 'dev_requirement' => false, ), 'laravel/serializable-closure' => array( - 'pretty_version' => 'v1.3.3', - 'version' => '1.3.3.0', - 'reference' => '3dbf8a8e914634c48d389c1234552666b3d43754', + 'pretty_version' => 'v1.3.5', + 'version' => '1.3.5.0', + 'reference' => '1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c', 'type' => 'library', 'install_path' => __DIR__ . '/../laravel/serializable-closure', 'aliases' => array(), diff --git a/laravel/serializable-closure/src/Serializers/Native.php b/laravel/serializable-closure/src/Serializers/Native.php index 4a04b981e..59a1bc6cc 100644 --- a/laravel/serializable-closure/src/Serializers/Native.php +++ b/laravel/serializable-closure/src/Serializers/Native.php @@ -378,6 +378,10 @@ protected function mapPointers(&$data) continue; } + if (PHP_VERSION >= 8.1 && $property->isReadOnly()) { + continue; + } + $item = $property->getValue($data); if ($item instanceof SerializableClosure || $item instanceof UnsignedSerializableClosure || ($item instanceof SelfReference && $item->hash === $this->code['self'])) { diff --git a/laravel/serializable-closure/src/Support/ReflectionClosure.php b/laravel/serializable-closure/src/Support/ReflectionClosure.php index 054400435..e489996bb 100644 --- a/laravel/serializable-closure/src/Support/ReflectionClosure.php +++ b/laravel/serializable-closure/src/Support/ReflectionClosure.php @@ -1135,10 +1135,10 @@ protected function fetchItems() if (--$open == 0) { if (! $structIgnore) { $structures[] = [ - 'type' => $structType, - 'name' => $structName, + 'type' => $structType, + 'name' => $structName, 'start' => $startLine, - 'end' => $endLine, + 'end' => $endLine, ]; } $structIgnore = false;