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
@assert_on_string
If an assert starts with a string, such as assert('foo' === $bar), PhpDeprecationDetector outputs an error:
assert
assert('foo' === $bar)
Function usage assert() (@assert_on_string) is changed. You should avoid using string code: 'foo' in assert() usage
By changing to assert($bar === 'foo') no errors are output.
assert($bar === 'foo')
The text was updated successfully, but these errors were encountered:
Here are the relevant PHP manual links for this. https://www.php.net/manual/en/function.assert Deprecation: https://www.php.net/manual/en/migration72.deprecated.php Removal: https://www.php.net/manual/en/migration80.incompatible.php
Sorry, something went wrong.
No branches or pull requests
If an
assert
starts with a string, such asassert('foo' === $bar)
, PhpDeprecationDetector outputs an error:By changing to
assert($bar === 'foo')
no errors are output.The text was updated successfully, but these errors were encountered: