We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should make sure first that the changed code is covered with tests.
The text was updated successfully, but these errors were encountered:
string*
For reference, one instance is in DeclarationBlock::parse(), and was spotted during review of #972.
DeclarationBlock::parse()
Sorry, something went wrong.
[CLEANUP] Use null for unset value in DeclarationBlock::parse()
null
85e70b7
The variable is either a string or it isn't. The best practice for when it isn't is for it to be `null` or `unset()`. Using `false` for when it isn't can lead to type-safety issues. Reference: https://vulke.medium.com/when-should-variables-be-null-false-undefined-or-an-empty-string-in-php-4ebd73c7a954 Also use `===` in a comparison in the affected code. Resolves #975. Part of #976.
[CLEANUP] Use null for unset value in DeclarationBlock::parse() (#…
6ff4aa5
…988) The variable is either a string or it isn't. The best practice for when it isn't is for it to be `null` or `unset()`. Using `false` for when it isn't can lead to type-safety issues. Reference: https://vulke.medium.com/when-should-variables-be-null-false-undefined-or-an-empty-string-in-php-4ebd73c7a954 Also use `===` in a comparison in the affected code. Resolves #975. Part of #976.
No branches or pull requests
We should make sure first that the changed code is covered with tests.
The text was updated successfully, but these errors were encountered: