Strpos result comparison
yannouche34490 opened this issue · comments
yannouche34490 commented
flysystem/src/MountManager.php
Line 353 in 4c44347
Hello,
when you make comparison between strpos result and 1, PHP will cast the result to a int even if function returns false. It can result an unexpected true comparison.
Best regards.
Frank de Jonge commented
In this it's not a problem, because false
would convert to -1
and that would mean there is no ://
, which also would be incorrect