-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Avoid hasChildren deprecation #1090
Conversation
Since we're rely on the fact we're iterating on Blocks, I removed the |
sad I will need to open the code to fix this... tomorrow then. |
62ea6a2
to
59d6fd1
Compare
59d6fd1
to
04370a5
Compare
@@ -199,7 +199,7 @@ public function addChildren(BlockInterface $children): void | |||
$children->setParent($this); | |||
} | |||
|
|||
public function getChildren(): iterable | |||
public function getChildren() |
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.
Had to change this to fix phpstan
*/ | ||
public function getChildren(): iterable; | ||
public function getChildren(); |
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.
And this.
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.
I think you can keep the return type.
public function getChildren(): iterable;
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.
It breaks phpstan.
*/ | ||
public function getChildren(): iterable; | ||
public function getChildren(); |
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.
I think you can keep the return type.
public function getChildren(): iterable;
Subject
I am targeting this branch, because this is BC.
Changelog