Closed StefanoTesla closed 2 years ago
I don't think that these code snippets ever returned an error. strpos
returns int|false
.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Many days ago my code was:
Testing on PHPStan I get error on the
> 0
and at today I cannot replicate, but the error seggested to me that strpos can return 0 or false and the > 0 comparsion was not very good.In the same day I tried olso:
And I didn't get any error but the right way is
The most strange thing, is at today I cannot see the error message (I'm testing with the online editor)