Skip to content

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Aug 27, 2021

triggered by #647 (comment)

@staabm staabm marked this pull request as ready for review August 27, 2021 08:29
@staabm
Copy link
Contributor Author

staabm commented Aug 27, 2021

the latest commit covers another case regarding 0 != count(), regarding non-empty-array type

@staabm staabm changed the title added sizeof as alias of count for Smaller/SmallerOrEqual added sizeof() as alias of count for Smaller/SmallerOrEqual Aug 27, 2021
@staabm staabm changed the title added sizeof() as alias of count for Smaller/SmallerOrEqual added sizeof() as alias of count() for Smaller/SmallerOrEqual Aug 27, 2021
{
if (0 != count($arr)) {
assertType('string', reset($arr));
assertType('array&nonEmpty', $arr);
Copy link
Member

Choose a reason for hiding this comment

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

This is basically deleting an existing test. Please add additional line instead of deleting this.

Copy link
Member

Choose a reason for hiding this comment

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

Oh sorry, I misread the commit history, it's fine.

@ondrejmirtes ondrejmirtes merged commit cee5bbe into phpstan:master Aug 27, 2021
@ondrejmirtes
Copy link
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants