Repository navigation
Make the Html::clean() test data providers static - #266
Merged
Merged
Conversation
PHPUnit 11 rejects a non-static data provider with an error, so `unsafeAttributeProvider()` and `safeMarkupProvider()` from #264 break CI on wip/1.3 (#207) as soon as develop is merged in. The other seven providers in the suite were already made static there. Static providers work unchanged under PHPUnit 9, so the full suite stays green on develop as well.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughTwo HTML builder test data-provider methods are now static. Their test cases are unchanged. Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PHPUnit 11 rejects a non-static data provider with an error, so
unsafeAttributeProvider()andsafeMarkupProvider()from #264 break CI on wip/1.3 (#207) as soon as develop is merged in:The other seven providers in the suite were already made static on wip/1.3, which is why only these two fail. Static providers work unchanged under PHPUnit 9, so this fixes both branches from one commit and keeps the merge conflict-free.
Verified: full suite on develop (PHPUnit 9.6.38) 907 tests OK; #207's head merged with this commit (PHPUnit 11.5.57) 968 tests OK, down from 2 errors. #207 needs no change of its own — CI tests the merge with base, so re-running its workflow after this lands picks it up.
Summary by CodeRabbit