[BUGFIX] Use TYPO3-compliant Array syntax for PackageStates.php 96/46296/2
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:35:12 +0000 (19:35 +0100)
Resolves: #72993
Releases: master, 7.6
Change-Id: Icd03506191aac85c6edcf618bc4c7c5de377a877
Reviewed-on: https://review.typo3.org/46296
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Package/PackageManager.php

index 4a9922b..ad15709 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;
@@ -832,7 +833,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();