You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a bug in the Twig Bundle, not Twig itself, but I can't find it, so I may be very wrong.
Steps To Reproduce
Create a twig view with a form containing the following Twig function: {{ form_enctype(form) }}
Enable the Twig sandbox.
Clear the cache: php app/console cache:clear
You will receive a PHP parse error: PHP Parse error: syntax error, unexpected ';' in /home/ ... /app/cache/de_/twig/85/94/1fe242f2c7a336bddc00854ec646.php on line 135
* 2.3:
[Process] Revert change
[Process] Fix#8746 : slowness added in unit tests since #8741
[Process] Fix#8742 : Signal-terminated processes are not successful
corrected English grammar (s/does not exists/does not exist)
[Process] Add more precision to Process::stop timeout
[Process] Avoid zombie process in case of unit tests failure
[Process] Fix#8739
[Process] Add failing test for #8739
[Process] Fix CS
[TwigBridge] removed superflous ; when rendering form_enctype() (closes#8660)
Fixed documentation grammar for AuthenticationManagerInterface::authenticate()
[Validator] fixed the wrong isAbstract() check against the class (fixed#8589)
[TwigBridge] Prevent code extension to display warning
Fix internal sub-request creation
[FrameworkBundle] made code more generic
[Form] Moved auto_initialize option to the BaseType
Use strstr instead of strpos
Make sure ContextErrorException is loaded during compile time errors
Fix empty process argument escaping on Windows
Ignore null value in comparison validators
Conflicts:
src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php
src/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php
src/Symfony/Component/Process/Process.php
I think this is a bug in the Twig Bundle, not Twig itself, but I can't find it, so I may be very wrong.
Steps To Reproduce
{{ form_enctype(form) }}
php app/console cache:clear
You will receive a PHP parse error:
PHP Parse error: syntax error, unexpected ';' in /home/ ... /app/cache/de_/twig/85/94/1fe242f2c7a336bddc00854ec646.php on line 135
Line 135 is:
The error is that an extra semi-colon is inserted before the final end-parenthesis.
I realize that form_enctype is deprecated, but several bundles still use it.
I hope this helps.
The text was updated successfully, but these errors were encountered: