1
0
Fork 0

Fix private autoloader callbacks breaking the new runtime autoloader handling code

pull/11964/head
Jordi Boggiano 2024-05-04 23:01:17 +02:00
parent f81e84164e
commit c2fd4d3ebb
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 1 deletions

View File

@ -661,7 +661,10 @@ class EventDispatcher
}
}
private function getCallbackIdentifier(callable $cb): string
/**
* @param callable $cb DO NOT MOVE TO TYPE HINT as private autoload callbacks are not technically callable
*/
private function getCallbackIdentifier($cb): string
{
if (is_string($cb)) {
return 'fn:'.$cb;