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 errors when using non-static data providers #28

Merged
merged 1 commit into from
Mar 10, 2024

Conversation

rezigned
Copy link
Member

@rezigned rezigned commented Mar 10, 2024

PHPUnit v10+ requires data provider to be a static method.

Example errors

The data provider specified for UriTemplateTest::testExpansion is invalid
Data Provider method UriTemplateTest::dataExpansion() is not static

@rezigned rezigned force-pushed the fix-phpunit-warnings branch 2 times, most recently from 8d30ab8 to 26e79d5 Compare March 10, 2024 08:03
@rezigned rezigned changed the title Fix PHPUnit warnings and errors Fix PHPUnit errors when using non-static data providers Mar 10, 2024
@rezigned rezigned merged commit 34efe65 into master Mar 10, 2024
5 checks passed
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.

None yet

1 participant