From 58410f40e3433cc25d9b77f722e9ea690a14b5a9 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 5 May 2024 17:55:58 +0200 Subject: [PATCH] Autoloader: fix missing return value An autoloader should always return a boolean value to indicate whether or not it has loaded a file. This allows for chaining autoloaders. In most cases, the `return` statement in the autoloader already returned a boolean, this was the only exception. --- autoload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload.php b/autoload.php index d7d655e8ed..3d54ee409d 100644 --- a/autoload.php +++ b/autoload.php @@ -73,7 +73,7 @@ public static function load($class) // Make sure we don't try to load any of Composer's classes // while the autoloader is being setup. if (strpos($class, 'Composer\\') === 0) { - return; + return false; } if (strpos(__DIR__, 'phar://') !== 0