Markus Staab
Markus Staab
just now saw the feedback in https://github.com/phpstan/phpstan/issues/2920#issuecomment-2399602921 - will consider
the issue targeted with this PR was resolved in the meantime
I wonder how we want to decide for which union types we want this error beeing reported and for which not.
stumbled over the same problem today in a different context: signature enforced by interface vs. more precise type on the implementation end. the `MinPhpVersionInterface` interface resides in a different package...
> This interface is used on multiple Enums, some do return null as designed. > Those who do not are reported that the `null` should be removed. even if your...
sorted the files, so hopefully we get consistent results across platforms.
@TomasVotruba do you have a second? :)
Issue bot will send a comment when its fixed. Until then you can stick to ondreys suggestion: > Feel free to revert to a last working version, or send a...
> To my understanding isset() checks have always been (way) faster than array_key_exists(). Obviously there is the difference in null handling, but over the years I've seen quite a lot...
Could you PR a small reproducer of the problem as PHPT test?