"Always true" conditions in the last elseif branch and last match expression arm are not reported by default (#2105), #8042, #8485, #7721, #4242, #8240, thanks @​staabm!
Note: "Always true" conditions in PHPStan 1.x are reported with Bleeding Edge enabled, or with phpstan-strict-rules installed, or with relevant options enabled separately. In PHPStan 2.0 they're going to be always reported, except for the last elseif branch and last match expression arm.
If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon:
Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Improvements 🔧
Implement identical/equal comparisons on EnumCaseObjectType (#2105), thanks @​staabm!
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps phpstan/phpstan from 1.8.4 to 1.10.0.
Release notes
Sourced from phpstan/phpstan's releases.
... (truncated)
Commits
71b28a6
PHPStan 1.10.06a4b30c
Updated PHPStan to commit 6a4b30c9adbda073d27fc3845a23dcdccee07bce3198be7
Update config-reference.md9dd5b64
Updated PHPStan to commit 9dd5b640fbd4b17cfbefa7cc09e1330a01b26bc9c015e47
Updated PHPStan to commit c015e47f40bdc72c19ce92457dd00d194f365da3e3554ad
Updated PHPStan to commit e3554ad0665740ec240fcb7be77ae8d4e9f8a1bedf23233
Updated PHPStan to commit df232331f6d6896e0d6d7c3ba95187e7f8446b30bdc44bf
Fix0cb8809
Newlines between tips in playgroundec8d7b8
Updated PHPStan to commit ec8d7b884c11fbb4c6b8efbd8c52ca0e8b7bfcd6Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)