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: Make sure Assert::assertIsList correctly asserts an array as list #213

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

mitelg
Copy link
Contributor

@mitelg mitelg commented Nov 12, 2024

Follow up of this issue: #212

I decided to also bring this up into this repo, to make sure it also works for older PHPUnit versions.

for PHPUnit 11 it is fixed here: sebastianbergmann/phpunit#6027

but the phpstan-assert annotations are not used in older versions. I hope this is okay.

I also add it to the 1.4.x branch, is we could not update to 2.x yet, because of missing plugin compatibility.

@mitelg mitelg changed the base branch from 2.0.x to 1.4.x November 12, 2024 10:30
@ondrejmirtes ondrejmirtes merged commit 11d4235 into phpstan:1.4.x Nov 12, 2024
41 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@mitelg mitelg deleted the fix/assert-list branch November 12, 2024 13:02
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