From c2fd4d3ebb8312bb5b4f288908cf2affae40c8dc Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 4 May 2024 23:01:17 +0200 Subject: [PATCH] Fix private autoloader callbacks breaking the new runtime autoloader handling code --- src/Composer/EventDispatcher/EventDispatcher.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Composer/EventDispatcher/EventDispatcher.php b/src/Composer/EventDispatcher/EventDispatcher.php index 2fabbbead..cab856252 100644 --- a/src/Composer/EventDispatcher/EventDispatcher.php +++ b/src/Composer/EventDispatcher/EventDispatcher.php @@ -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;