From 692facd30399ef7465e04059295985de6240400f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Mon, 17 Jun 2024 21:10:07 +0200 Subject: [PATCH] fix test --- tests/Composer/AutoloadDumperTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Composer/AutoloadDumperTest.php b/tests/Composer/AutoloadDumperTest.php index 802ba8b58..4fcd5c13c 100644 --- a/tests/Composer/AutoloadDumperTest.php +++ b/tests/Composer/AutoloadDumperTest.php @@ -163,7 +163,7 @@ public static function autoloadProvider(): iterable $loader = (static function () { // Backup the autoloaded Composer files - $existingComposerAutoloadFiles = $GLOBALS['__composer_autoload_files'] ?? []; + $existingComposerAutoloadFiles = isset($GLOBALS['__composer_autoload_files']) ? $GLOBALS['__composer_autoload_files'] : []; // @generated by Humbug Box @@ -261,7 +261,7 @@ public static function autoloadProvider(): iterable \$loader = (static function () { // Backup the autoloaded Composer files - \$existingComposerAutoloadFiles = \$GLOBALS['__composer_autoload_files'] ?? []; + \$existingComposerAutoloadFiles = \isset($GLOBALS['__composer_autoload_files']) ? $GLOBALS['__composer_autoload_files'] : []; // @generated by Humbug Box @@ -361,7 +361,7 @@ public static function autoloadProvider(): iterable namespace { $loader = (static function () { // Backup the autoloaded Composer files - $existingComposerAutoloadFiles = $GLOBALS['__composer_autoload_files'] ?? []; + $existingComposerAutoloadFiles = isset($GLOBALS['__composer_autoload_files']) ? $GLOBALS['__composer_autoload_files'] : []; // @generated by Humbug Box