Bump phpstan/phpstan from 1.7.15 to 1.8.0
Created by: dependabot[bot]
Bumps phpstan/phpstan from 1.7.15 to 1.8.0.
Release notes
Sourced from phpstan/phpstan's releases.
1.8.0
Major new features
🚀
- Collectors - allows writing custom rules that target the whole project
- New
rememberPossiblyImpureFunctionValues
config parameter (defaults totrue
) (https://github.com/phpstan/phpstan-src/commit/50ed38f04de93b4d0ea9573d0a4789853a4b9f32), #7529 * Read more: https://phpstan.org/config-reference#rememberpossiblyimpurefunctionvaluesBleeding edge
🔪
- Check that each trait is used and analysed at least once - level 4 (https://github.com/phpstan/phpstan-src/commit/c4d05276fb8605d6ac20acbe1cc5df31cd6c10b0)
- Check that PHPStan class in class constant fetch is covered by backward compatibility promise (https://github.com/phpstan/phpstan-src/commit/9e007251ce61788f6a0319a53f1de6cf801ed233)
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
:includes: - vendor/phpstan/phpstan/conf/bleedingEdge.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
🔧
- Type a ranged value for
filter_var(FILTER_VALIDATE_INT)
(#1443), #7494, thanks@zonuexe
!- Allow BooleanAnd and BooleanOr as standalone expressions with right sides always false (https://github.com/phpstan/phpstan-src/commit/f9374e74beec7082228454693dcdc14000070266), #2741
- Added
@api
annotation toNodeScopeResolver::processStmtNodes()
(#1464), thanks@vojtech-dobes
!- Add
ClassReflection->is()
shortcut (#1468), thanks@janedbal
!- Force update of the PHPStan Pro PHAR in case of crash (https://github.com/phpstan/phpstan-src/commit/b95606ec291a7cf926ca757e544bfa089da950aa)
- Intersect optimization for large unions (#1471), thanks
@neclimdul
!- Update phpdoc-parser (https://github.com/phpstan/phpstan-src/commit/7aa19e02c60c75961333d99cfb5c4704796d6e55)
- Simplify parsing of type alias import (phpstan/phpdoc-parser#137), thanks
@jiripudil
!- Support
@template-contravariant
tags (phpstan/phpdoc-parser#140), thanks@autaut03
!Bugfixes
🐛
- Prevent crashing for negative bit shifts (#1447), #7490, thanks
@rvanvelzen
!- Fix infinite recursion for template intersection type accepts() (#1450), #7500, thanks
@rvanvelzen
!- Run with parallel runner only when
proc_open
is not disabled (#1451), #7488, thanks@mvorisek
!- Suppress
is_file
warnings inbin/phpstan
(#1466), thanks@mvorisek
!- Fix specifying types for chained assignments (#1473), #7142, thanks
@rvanvelzen
!- Consider autoloaders passed in
-a
(https://github.com/phpstan/phpstan-src/commit/78016fe92840c02a5981f4ab2ea28fc2d3e49f27)Function signature fixes
🤖
... (truncated)
Commits
-
b7648d4
PHPStan 1.8.0 -
e08eff5
Collectors docs -
f7bea8d
rememberPossiblyImpureFunctionValues docs -
5fe9a5d
Updated PHPStan to commit 59fb0a3b23c91e5b736c7b67d8a9fd075fc08211 -
07b9dbe
Update update-playground-runner.yml -
e667a0b
Skip phpstan-doctrine on PHP 7.2 -
5f76cd2
Updated PHPStan to commit 78b12fa8fb276bb3594e1738ba92f8b3b12cdcd2 -
5a8ccdb
Update Symplify baseline -
adb8acd
Open 1.8-dev -
60baecd
Prepare for 1.8.x by disabling some workflows on 1.7.x - Additional commits viewable in compare view
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)