forked from twigphp/Twig
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow up of twigphp#4176, twigphp#4123 and twigphp#2712. Now that we have deprecated unnecessary escape in v3, we can change the behavior in v4. With this change, unnecessary will no longer be ignored, but handled like any other character. This allows for writing fully qualified class names like this: ```twig {{ constant('App\Entity\User::SOME_CONSTANT') }} ``` Instead of having to escape the `\` in v3: ```twig {{ constant('App\\Entity\\User::SOME_CONSTANT') }} ```
- Loading branch information
Showing
2 changed files
with
14 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters