8000 [TwigBridge] removed Twig null nodes (deprecated as of Twig 1.25) by fabpot · Pull Request #19983 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[TwigBridge] removed Twig null nodes (deprecated as of Twig 1.25) #19983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 19, 2016

Conversation

fabpot
Copy link
Member
@fabpot fabpot commented Sep 19, 2016
Q A
Branch? 2.7
Bug fix? yes (more about removing deprecation notices from newer versions of Twig)
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a (see twigphp/Twig#2123)
License MIT
Doc PR n/a

@fabpot fabpot merged commit 12350c2 into symfony:2.7 Sep 19, 2016
fabpot added a commit that referenced this pull request Sep 19, 2016
…g 1.25) (fabpot)

This PR was merged into the 2.7 branch.

Discussion
----------

[TwigBridge] removed Twig null nodes (deprecated as of Twig 1.25)

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes (more about removing deprecation notices from newer versions of Twig)
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a (see twigphp/Twig#2123)
| License       | MIT
| Doc PR        | n/a

Commits
-------

12350c2 [TwigBridge] removed Twig null nodes (deprecated as of Twig 1.25)
@fabpot fabpot deleted the twig-null-nodes-removal branch September 21, 2016 21:18
This was referenced Oct 3, 2016
arthens added a commit to arthens/safe-translations that referenced this pull request Oct 28, 2016
The current implementation of the parser relies on being able to call
node.getNode(...) for null node too. However, null nodes are deprecated
as of Twig 1.25 and twig-bridge throws an exception when trying to read
a null node, see symfony/symfony#19983

This change fixes the problem by checking if the node exits before
getting it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4EAC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0