Uh oh!
There was an error while loading. Please reload this page.
refactor: fix phpstan only boolean allowed - #9302
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
👋 Hi, @neznaika0! |
f6bb767 to
37a924dCompare0bf76f5 to
f3a85deComparef3a85de to
c31d553Compare
michalsn
left a comment
There was a problem hiding this comment.
Why is null typed into a string so many times? In many cases it is not necessary. I was just looking at the code, I don't know if phpstan forces such typing? In many places it is very strange.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
neznaika0
commented
Dec 27, 2024
See comment @paulbalandan
Short code for check null or empty string. Empty string is incorrect to pass in the parameter. |
michalsn
commented
Dec 27, 2024
@neznaika0 It would be easier if you could respond under the code you're referring to. Okay, for |
neznaika0
commented
Dec 27, 2024
If the value can be |
michalsn
commented
Dec 27, 2024
This is not a general conversation about |
c31d553 to
0b85e5cCompare0b85e5c to
26f3fb6Compareneznaika0
commented
Dec 28, 2024
@michalsn revert comparison with |
paulbalandan
commented
Dec 28, 2024
Thank you, @neznaika0 |
Description
Fixed all errors like
I tried to apply the typing adequately during the checks. For a more accurate fix, you need to update the code instead of phpdoc.
It is possible to additionally check for
null, false, <empty-string>somewhereFixed 92 errors out of 3925
Checklist: