@@ -70,7 +70,7 @@ |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | - * @param mixed $candidate |
|
| 73 | + * @param string $candidate |
|
| 74 | 74 | * @param RenderingContextInterface $renderingContext |
| 75 | 75 | * @return mixed |
| 76 | 76 | */ |
@@ -6,9 +6,7 @@ |
||
| 6 | 6 | * See LICENSE.txt that was shipped with this package. |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -use TYPO3Fluid\Fluid\Core\Parser\Patterns; |
|
| 10 | 9 | use TYPO3Fluid\Fluid\Core\Parser\TemplateProcessorInterface; |
| 11 | -use TYPO3Fluid\Fluid\Core\Parser\UnknownNamespaceException; |
|
| 12 | 10 | use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; |
| 13 | 11 | |
| 14 | 12 | /** |
@@ -698,7 +698,7 @@ |
||
| 698 | 698 | if (preg_match_all(Patterns::$SPLIT_PATTERN_SHORTHANDSYNTAX_ARRAY_PARTS, $arrayText, $matches, PREG_SET_ORDER)) { |
| 699 | 699 | foreach ($matches as $singleMatch) { |
| 700 | 700 | $arrayKey = $this->unquoteString($singleMatch['Key']); |
| 701 | - if (array_key_exists('Subarray', $singleMatch) && !empty($singleMatch['Subarray']) && is_array($singleMatch['Subarray'])){ |
|
| 701 | + if (array_key_exists('Subarray', $singleMatch) && !empty($singleMatch['Subarray']) && is_array($singleMatch['Subarray'])) { |
|
| 702 | 702 | $arrayToBuild[$arrayKey] = new ArrayNode($this->recursiveArrayHandler($singleMatch['Subarray'])); |
| 703 | 703 | } elseif (!empty($singleMatch['VariableIdentifier'])) { |
| 704 | 704 | $arrayToBuild[$arrayKey] = new ObjectAccessorNode($singleMatch['VariableIdentifier']); |