-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fix PHPStan problems and be explicit #84
Conversation
src/Node/NodeTrait.php
Outdated
return \array_reduce( | ||
$this->getChildren(), | ||
static function ($size, $child) { | ||
return $size + $child->getSize(); | ||
}, | ||
1 | ||
); |
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.
This is bonus content 🎁
Please consider using @phpstan! |
Added |
Thank you for the information. I'm a PHPStan contributor. |
63c902b
to
cae1121
Compare
cae1121
to
e38c886
Compare
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.
👍
Thank you, @szepeviktor! |
You're welcome. |
From https://twitter.com/localheinz/status/1332251797226991616