[BUGFIX] Use TYPO3-compliant Array syntax for PackageStates.php 91/46291/5
authorBenni Mack <benni@typo3.org>
Thu, 28 Jan 2016 17:26:23 +0000 (18:26 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Thu, 28 Jan 2016 18:34:52 +0000 (19:34 +0100)
Resolves: #72993
Releases: master, 7.6
Change-Id: Icd03506191aac85c6edcf618bc4c7c5de377a877
Reviewed-on: https://review.typo3.org/46291
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Package/PackageManager.php

index 108b189..448083e 100644 (file)
@@ -18,6 +18,7 @@ use TYPO3\CMS\Core\Compatibility\LoadedExtensionArrayElement;
 use TYPO3\CMS\Core\Core\Bootstrap;
 use TYPO3\CMS\Core\Core\ClassLoadingInformation;
 use TYPO3\CMS\Core\Service\OpcodeCacheService;
+use TYPO3\CMS\Core\Utility\ArrayUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Core\Utility\PathUtility;
 use TYPO3\CMS\Core\Utility\StringUtility;
@@ -829,7 +830,7 @@ class PackageManager implements \TYPO3\CMS\Core\SingletonInterface
             }
             fclose($fileHandle);
         }
-        $packageStatesCode = "<?php\n$fileDescription\nreturn " . var_export($this->packageStatesConfiguration, true) . "\n ?>";
+        $packageStatesCode = "<?php\n$fileDescription\nreturn " . ArrayUtility::arrayExport($this->packageStatesConfiguration) . ";\n";
         GeneralUtility::writeFile($this->packageStatesPathAndFilename, $packageStatesCode, true);
 
         $this->initializeCompatibilityLoadedExtArray();