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

Narrow type on assertCount and assertNotCount #205

Merged
merged 2 commits into from
Feb 23, 2024
Merged

Narrow type on assertCount and assertNotCount #205

merged 2 commits into from
Feb 23, 2024

Conversation

michalbundyra
Copy link
Contributor

Fixes #204

assertType('non-empty-array', $a);

assertCount(7, $b);
assertType('Countable', $b);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure if we have any better type for non-empty Countable ?

@ondrejmirtes ondrejmirtes merged commit d5242a5 into phpstan:1.3.x Feb 23, 2024
31 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@michalbundyra michalbundyra deleted the fix/204 branch February 23, 2024 10:03
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.

2 participants