Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure
trait_exists()
always returns bool
Fixes #7478 As discussed in the upstream issue, `trait_exists()` always returns `bool`: while it can return `null` when the arguments passed to it do not match (either no arguments, or 3 or more arguments), we do not support that scenario, as that already doesn't respect the type signature of this function. We cut to the point: always make it `bool`, which is the scenario that works under healthy operational conditions. Ref: Roave/BetterReflection#983 (comment) Ref: https://psalm.dev/r/c41a43805d Ref: #7478 (comment) Ref: #7478 (comment) Ref: https://3v4l.org/XpHmh
- Loading branch information