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

Fix PHPStan problems and be explicit #84

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

szepeviktor
Copy link
Contributor

Comment on lines 217 to 223
return \array_reduce(
$this->getChildren(),
static function ($size, $child) {
return $size + $child->getSize();
},
1
);
Copy link
Contributor Author

@szepeviktor szepeviktor Nov 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is bonus content 🎁

@szepeviktor
Copy link
Contributor Author

Please consider using @phpstan!

@localheinz localheinz self-assigned this Oct 4, 2022
@localheinz localheinz added the bug label Oct 4, 2022
@localheinz
Copy link
Collaborator

@szepeviktor

Added vimeo/psalm in #111!

@szepeviktor
Copy link
Contributor Author

szepeviktor commented Oct 4, 2022

Thank you for the information.
The author of vimeo/psalm forbade me to talk about its origins.

I'm a PHPStan contributor.

@localheinz localheinz force-pushed the static-analysis branch 2 times, most recently from 63c902b to cae1121 Compare October 4, 2022 14:23
Copy link
Collaborator

@localheinz localheinz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@localheinz localheinz merged commit a56ca0f into nicmart:master Oct 4, 2022
@localheinz
Copy link
Collaborator

Thank you, @szepeviktor!

@szepeviktor
Copy link
Contributor Author

You're welcome.

@szepeviktor szepeviktor deleted the static-analysis branch October 4, 2022 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants