[FOLLOWUP][TASK] Unify TypoScript-related helper methods 52/52252/3
authorFrans Saris <franssaris@gmail.com>
Wed, 29 Mar 2017 19:50:36 +0000 (21:50 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 30 Mar 2017 06:07:27 +0000 (08:07 +0200)
Now the TypoScriptService is PHP strict we need to take care
the processed value is of the correct type.

Resolves: #78650
Releases: master
Change-Id: I1d79059c65676ce2e8126b6502c822d8b500379e
Reviewed-on: https://review.typo3.org/52252
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/TypoScript/TypoScriptService.php

index 57cdbaf..d866560 100644 (file)
@@ -108,7 +108,7 @@ class TypoScriptService
                 foreach ($tempConf as $aKey => $val2) {
                     $finalConfiguration[$aKey][$cKey] = $val2;
                 }
-            } else {
+            } elseif (is_string($val)) {
                 // Splitting of all values on this level of the TypoScript object tree:
                 if ($cKey === 'noTrimWrap' || (!strstr($val, '|*|') && !strstr($val, '||'))) {
                     for ($aKey = 0; $aKey < $splitCount; $aKey++) {