-
Notifications
You must be signed in to change notification settings - Fork 98
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 "dynamic call to static method" phpstan error in tests #612
Conversation
I'm not sure about this change, I think in phpunit v10 they are not static anymore,unless I am mistaken Edit: yes I'm wrong 🙈 |
I ended up adding 2 php-cs-fixer rules:
|
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.
Not sure if I caught all cases where $expected
and $actual
params are swapped
Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com>
bors merge |
612: Fix "dynamic call to static method" phpstan error in tests r=norkunas a=aivchen # Pull Request ## What does this PR do? - replaces `$this->assertXXX` calls with `static::assertXXX` - replaces `assertEquals` calls with `assertSame` - ordered arguments in `assertSame` calls ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: andrew <and.ivchenkov@gmail.com> Co-authored-by: Andrew Ivchenkov <and.ivchenkov@gmail.com>
Build failed: |
bors merge |
Build succeeded:
|
Thank you @aivchen |
Pull Request
What does this PR do?
$this->assertXXX
calls withstatic::assertXXX
assertEquals
calls withassertSame
assertSame
callsPR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!