Skip to content

Commit

Permalink
bug #3463 Twig extra bundle now requires twig 3.2 (sylvia-vdv)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

Twig extra bundle now requires twig 3.2

Updated requirements of composer.json in twig/extra/twig-extra-bundle:

Due to the addition of `registerUndefinedTokenParserCallback ` in the file `Twig/extra/twig-extra-bundle/DependencyInjection/Compiler/MissingExtensionSuggestorPass.php`, version 3.2 of twig/twig is also required.
With older versions of twig/twig installed, an error is thrown:
```
 Attempted to call an undefined method named "registerUndefinedTokenParserCallback" of class "Twig\Environment".
Did you mean to call e.g. "registerUndefinedFilterCallback" or "registerUndefinedFunctionCallback"?
```

Commits
-------

3dfcaec require twig/twig ^3.2
  • Loading branch information
fabpot committed Jan 5, 2021
2 parents 8ce9dcd + 3dfcaec commit 7656536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/twig-extra-bundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"php": "^7.1.3|^8.0",
"symfony/framework-bundle": "^4.3|^5.0",
"symfony/twig-bundle": "^4.3|^5.0",
"twig/twig": "^2.4|^3.0"
"twig/twig": "^3.2"
},
"require-dev": {
"symfony/phpunit-bridge": "^4.4.9|^5.0.9",
Expand Down

0 comments on commit 7656536

Please sign in to comment.