mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 04:58:46 +02:00
N°8910 - Upgrade Symfony packages (#811)
This commit is contained in:
@@ -35,6 +35,11 @@ final class EarlyExpirationMessage
|
||||
|
||||
$pool = $reverseContainer->getId($pool);
|
||||
|
||||
if ($callback instanceof \Closure && !str_contains(($r = new \ReflectionFunction($callback))->name, '{closure')) {
|
||||
$callback = [$r->getClosureThis() ?? (\PHP_VERSION_ID >= 80111 ? $r->getClosureCalledClass() : $r->getClosureScopeClass())?->name, $r->name];
|
||||
$callback[0] ?: $callback = $r->name;
|
||||
}
|
||||
|
||||
if (\is_object($callback)) {
|
||||
if (null === $id = $reverseContainer->getId($callback)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user