Aggiornato Composer
This commit is contained in:
4
vendor/symfony/string/LazyString.php
vendored
4
vendor/symfony/string/LazyString.php
vendored
@@ -64,7 +64,7 @@ class LazyString implements \Stringable, \JsonSerializable
|
||||
*/
|
||||
final public static function isStringable(mixed $value): bool
|
||||
{
|
||||
return \is_string($value) || $value instanceof \Stringable || is_scalar($value);
|
||||
return \is_string($value) || $value instanceof \Stringable || \is_scalar($value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -127,7 +127,7 @@ class LazyString implements \Stringable, \JsonSerializable
|
||||
} elseif ($callback instanceof \Closure) {
|
||||
$r = new \ReflectionFunction($callback);
|
||||
|
||||
if (false !== strpos($r->name, '{closure}') || !$class = $r->getClosureScopeClass()) {
|
||||
if (false !== strpos($r->name, '{closure}') || !$class = \PHP_VERSION_ID >= 80111 ? $r->getClosureCalledClass() : $r->getClosureScopeClass()) {
|
||||
return $r->name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user