MDL-81671 libraries: upgrade to version 1.3.3 of Serializable Closure.

This commit is contained in:
Paul Holden 2024-06-17 15:03:16 +01:00
parent 2bf886f9dd
commit 53b69add3a
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164
2 changed files with 2 additions and 3 deletions

View File

@ -508,8 +508,7 @@ class ReflectionClosure extends ReflectionFunction
break;
case 'id_name':
switch ($token[0]) {
// named arguments...
case ':':
case $token[0] === ':' && $context !== 'instanceof':
if ($lastState === 'closure' && $context === 'root') {
$state = 'closure';
$code .= $id_start.$token;

View File

@ -743,7 +743,7 @@ All rights reserved.</copyright>
<library>
<location>laravel/serializable-closure</location>
<name>Serializable Closure</name>
<version>1.3.2</version>
<version>1.3.3</version>
<license>MIT</license>
<repository>https://github.com/laravel/serializable-closure</repository>
</library>