[BUGFIX] Generate correct syntax in new VH compiling Traits 11/50711/2
authorClaus Due <claus@namelesscoder.net>
Fri, 18 Nov 2016 19:10:05 +0000 (20:10 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 18 Nov 2016 19:31:02 +0000 (20:31 +0100)
Fixes a bad PHP syntax being generated by the
CompileWithContentArgumentAndRenderStatic
ViewHelper trait.

Change-Id: I2fea3b3eda7cef89981f2b74e08b93cb4b8d6a68
Resolves: #78748
Releeases: 7.6
Reviewed-on: https://review.typo3.org/50711
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/fluid/Resources/PHP/Traits/CompileWithContentArgumentAndRenderStatic.php

index b585012..4929363 100644 (file)
@@ -96,7 +96,7 @@ trait CompileWithContentArgumentAndRenderStatic {
     ) {
         $contentArgumentName = $this->resolveContentArgumentName();
         return sprintf(
-            '%s::renderStatic(%s, isset(%s[\'%s\']) ? function() use (%s); return %s[\'%s\']; } : %s, $renderingContext)',
+            '%s::renderStatic(%s, isset(%s[\'%s\']) ? function() use (%s) { return %s[\'%s\']; } : %s, $renderingContext)',
             static::class,
             $argumentsName,
             $argumentsName,