-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
changed the way we store node filenames #2122
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
Conversation
| return $this->getAttribute('module_filename'); | ||
| $this->filename = $filename; | ||
| foreach ($this->nodes as $node) { | ||
| if (null !== $node) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can it really be null ? This would break the contract
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parent is such an example on the main Module node. I agree that this is not great, and probably something I will fix in 2.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, there are more than just parent :( I will address that in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #2123
lib/Twig/Node.php
Outdated
| $this->filename = $filename; | ||
| foreach ($this->nodes as $node) { | ||
| if (null !== $node) { | ||
| $node->setFileName($filename); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: setFilename()
|
👍 much better solution |
fc1b4ed to
4c4657a
Compare
This PR was merged into the 1.x branch. Discussion ---------- changed the way we store node filenames Commits ------- 4c4657a changed the way we store node filenames
No description provided.