Skip to content
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

Deprecate instantiating Node directly, introduce EmptyNode and Nodes #4335

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented Sep 24, 2024

Based on some comments from @stof:

See #4292 (comment)
See #4333 (comment)

First interesting usage here: 65ee72a

@fabpot fabpot force-pushed the node-deprecation branch 4 times, most recently from da880a9 to 20b10f3 Compare September 26, 2024 19:22
@fabpot fabpot changed the title Deprecate using Node directly, introduce EmptyNode and Nodes Deprecate instantiating Node directly, introduce EmptyNode and Nodes Sep 26, 2024
src/Node/SetNode.php Outdated Show resolved Hide resolved
src/Parser.php Outdated Show resolved Hide resolved
src/Node/Nodes.php Outdated Show resolved Hide resolved
@fabpot fabpot force-pushed the node-deprecation branch 2 times, most recently from e1f24a9 to e9045da Compare September 27, 2024 05:16
@fabpot fabpot merged commit faf8471 into twigphp:3.x Sep 27, 2024
48 of 49 checks passed
@fabpot fabpot deleted the node-deprecation branch September 27, 2024 05:43
fabpot added a commit to symfony/symfony that referenced this pull request Sep 27, 2024
This PR was merged into the 5.4 branch.

Discussion
----------

[TwigBridge] Remove usage of `Node()` instantiations

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Issues        | n/a
| License       | MIT

See twigphp/Twig#4335 (which should be merged first)

Commits
-------

29d16b0 [TwigBridge] Remove usage of Node() instantiations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants