From c1c6698799d23a35ad17f6c23c10b3d5aa2b145d Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 23 Dec 2021 13:57:18 +0100 Subject: [PATCH] Fix phpunit workaround syntax --- src/Composer/Installer/BinaryInstaller.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Composer/Installer/BinaryInstaller.php b/src/Composer/Installer/BinaryInstaller.php index 2f8b04f052b6..cb5b5deaf8c1 100644 --- a/src/Composer/Installer/BinaryInstaller.php +++ b/src/Composer/Installer/BinaryInstaller.php @@ -267,8 +267,7 @@ protected function generateUnixyProxyCode($bin, $link) } // Add workaround for PHPUnit process isolation on PHPUnit 6+ if ($this->filesystem->normalizePath($bin) === $this->filesystem->normalizePath($this->vendorDir.'/phpunit/phpunit/phpunit')) { - $autoloadPathCode .= '$GLOBALS[\'__PHPUNIT_ISOLATION_EXCLUDE_LIST\'] = [realpath('.$binPathExported.')];'."\n" - .'$GLOBALS[\'__PHPUNIT_ISOLATION_BLACKLIST\'] = [realpath('.$binPathExported.')];'."\n"; + $autoloadPathCode .= '$GLOBALS[\'__PHPUNIT_ISOLATION_EXCLUDE_LIST\'] = $GLOBALS[\'__PHPUNIT_ISOLATION_BLACKLIST\'] = array(realpath('.$binPathExported.'));'."\n"; } if (trim($match[0]) !== '