BinaryDriver
BinaryDriver copied to clipboard
Clarify if-statements when variable is declared
代码bug?

Thanks for filing the issue and reading/checking the code for errors! :)
No, in fact the = operator has a higher binding than the strictly-not comparison to null.
PS C:\Users\Jens> psysh
Psy Shell v0.9.12 (PHP 7.4.2 — cli) by Justin Hileman
>>> null !== $binary = true
=> true
>>> if (null !== $binary = true) { echo "Win!"; }
Win!⏎
>>> if (null !== ($binary = true)) { echo "Win!"; }
Win!⏎
Yet I'd agree this would increase readability. If you want to file a merge request, you're free to do so! :)
Thank you for your answer