Problem: we use PHPStan to analyze our code base. It does not know that the interface methods can produce NULL values and then complains when we check for NULL.
Solution: fix the doc comments to indicate that NULL can be returned.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | profile-null-3170218-2.patch | 992 bytes | klausi |
Comments
Comment #2
klausiPatch.
Comment #3
hideaway commentedLooks good to me! RTBC
Comment #4
bradjones1I came to the issue queue to submit the same; I'll second the RTBC.
Comment #6
mglamanCommitted for the next quick release