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 PHPUnit deprecation notices #1526

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Nov 7, 2024

This addresses several "Providing invalid named argument" notices. PHPUnit 11 will require keys in data providers to match method argument names.

This addresses several "Providing invalid named argument" notices. PHPUnit 11 will require keys in data providers to match method argument names.
@jmikola jmikola requested a review from a team as a code owner November 7, 2024 13:32
@jmikola jmikola requested a review from GromNaN November 7, 2024 13:32
@@ -488,7 +488,7 @@ public function testRewindMultipleTimesWithNoResults(): void
}

#[DataProvider('provideCodecOptions')]
public function testNoChangeAfterResumeBeforeInsert(array $options): void
public function testNoChangeAfterResumeBeforeInsert(array $options, Closure $getIdentifier): void
Copy link
Member Author

Choose a reason for hiding this comment

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

Let me know if there's some annotation or other comment you'd like to see used to denote that this parameter is unused.

Copy link
Member

Choose a reason for hiding this comment

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

That could be @phpstan-ignore constructor.unusedParameter, but if PHPStan doesn't complain, that's fine not having it.

@jmikola jmikola merged commit ef10338 into mongodb:v1.x Nov 8, 2024
31 checks passed
@jmikola jmikola deleted the 1.x-phpunit-deprecations branch November 8, 2024 15: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