Skip to content

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Oct 22, 2024

If CI becomes green I'll merge this.

vmcj added 2 commits October 22, 2024 09:18
Even if we cannot match anything we would have had an array containing an empty array. That array indicates that nothing was matched.

We should now fail when:
- preg_match_all fails
- preg_match_all returns it found 0 matches
- the redundant case (as safeguard) when the array has 0 matches

(cherry picked from commit 274d36a)
The wrong state was picked in the past, PHPStan found this in an unrelated other issue.

(cherry picked from commit bdd6ea3)
@vmcj
Copy link
Member Author

vmcj commented Oct 22, 2024

The failure of the other test will be handled in another PR.

@vmcj vmcj merged commit edab670 into DOMjudge:8.3 Oct 22, 2024
21 of 22 checks passed
@vmcj vmcj deleted the phpstan83_221024 branch October 22, 2024 13:15
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.

1 participant