-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Bump Phpstan to level 4 #4494
Bump Phpstan to level 4 #4494
Conversation
@@ -362,7 +365,7 @@ private function filterBodyNodes(Node $node, bool $nested = false): ?Node | |||
// we need to discard the wrapping "Node" for the "body" node | |||
$nested = $nested || !$node instanceof Nodes; | |||
foreach ($node as $k => $n) { | |||
if (null !== $n && null === $this->filterBodyNodes($n, $nested)) { |
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.
node is @implements \IteratorAggregate<int|string, Node>
so $n
is never null.
src/Error/Error.php
Outdated
} else { | ||
$name = json_encode($this->name); | ||
} | ||
$name = \sprintf('"%s"', $this->name); |
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.
As $name is not used anywhere else, maybe we can merge this line with the next?
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.
Yes, Done in 8a2f2c0
Thank you @VincentLanglet. |
No description provided.