Skip to content

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Sep 9, 2025

It makes sense to restrict the types used for $errors. This can also improve the types for static analysis tools as they can now rely on the array being a list of this class type.

@nielsdos nielsdos requested a review from kocsismate as a code owner September 9, 2025 18:25
@nielsdos nielsdos linked an issue Sep 9, 2025 that may be closed by this pull request
It makes sense to restrict the types used for $errors.
This can also improve the types for static analysis tools as they can
now rely on the array being a list of this class type.

Closes phpGH-19781.
@nielsdos nielsdos merged commit 834e92a into php:master Sep 9, 2025
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InvalidUrlException should check $errors argument
3 participants