Bump phpstan/phpstan from 1.5.7 to 1.6.2
Created by: dependabot[bot]
Bumps phpstan/phpstan from 1.5.7 to 1.6.2.
Release notes
Sourced from phpstan/phpstan's releases.
1.6.2
Improvements
🔧
- Remove unneeded continue in
array_push
/array_unset
arg handling (#1252), thanks@herndlm
!- BaselineNeonErrorFormatter does not need to implement ErrorFormatter interface (https://github.com/phpstan/phpstan-src/commit/3a3c69eb93851fdb10dd360770e6d0bf5e65f827)
Bugfixes
🐛
- Fix TypeError with
constUses
in ExportedPhpDocNode (https://github.com/phpstan/phpstan-src/commit/3fe27268f6a32cb3303711f23bf45da1ed1948be), #7130- Do not report unnecessary nullsafe property fetch inside
??
/isset
/empty
, report it in bleedingEdge with different message (#1253, https://github.com/phpstan/phpstan-src/commit/54f15441eba3907c4ff056f6dafb1c2801a6b766), #7109, thanks@rajyan
!1.6.1
Bugfixes
🐛
- Be more resilient against non-existent traits and interfaces (https://github.com/ondrejmirtes/BetterReflection/commit/72bb30507092beca32ed3ab021a0de1f685bbd54), #7112
- Fix
BackedEnum::from()
andtryFrom()
methods (https://github.com/phpstan/phpstan-src/commit/e97439c5987fc7747b68d3617a128fad68102642), #7096- ConditionalReturnTypeRuleHelper - increase type description verbosity (https://github.com/phpstan/phpstan-src/commit/2f49187491aa034d37d2728deb4ee8f5e1102aa6), #7111
- Fix ConstantArrayType for optional/non-optional keys (#1249), #7111, thanks
@rvanvelzen
!- AutoloadSourceLocator - store the first included file (https://github.com/phpstan/phpstan-src/commit/63ef0a9eb76cb25e85ff1966c2011dd4c5d1892a), #7113
- Fix
array_push
/array_unshift
with unpacked non-constant array types (#1247), #7115, thanks@herndlm
!1.6.0
Read the article about PHPStan 1.6.0 »
Major new features
🚀
- Conditonal return types (pull requests), #3853, big thanks to
@rvanvelzen
!
- Allows return types in the form of
@return ($i is positive-int ? non-empty-array : array)
(don't forget the parentheses!)- Another possible form is with generic
@template
tags:@return (T is positive-int ? non-empty-array : array)
int-mask<...>
andint-mask-of<...>
types (#1166), thanks@rvanvelzen
!- Allow global constants as PHPDoc types (#1163), thanks
@rvanvelzen
!- Update
php-8-stubs
to know about PHP 8.1 function signature changes, #7017, #6448- Make
isset()
and null-coalesce (??
) operators consistent with each other (#1223), thanks@rajyan
!Bleeding edge
🔪
- Fully static reflection engine
- After feedback is gathered and processed, this will be enabled for everyone later in PHPStan 1.x release cycle.
- Lower memory consumption thanks to breaking up of reference cycles
- This is a BC break for rules that use
'parent'
,'next'
, and'previous'
node attributes. Learn more »- In testing the memory consumption was reduced by 50–70 %.
- ArrayUnpackingRule (level 3) (#856), thanks
@canvural
!- Rules for checking direct calls to
__construct()
(level 2) (#1208), #7022, thanks@muno92
!checkMissingIterableValueType: false
no longer does anything (https://github.com/phpstan/phpstan-src/commit/50d0c8e23ea85da508ab8481f1ff2c89148cc80b)
... (truncated)
Commits
-
becb960
PHPStan 1.6.2 -
832494a
Updated PHPStan to commit 3a3c69eb93851fdb10dd360770e6d0bf5e65f827 -
627823b
Updated PHPStan to commit 54f15441eba3907c4ff056f6dafb1c2801a6b766 -
fdc8c46
IncludegetAdditionalConfigFiles()
in the rule test example -
a4f6853
Updated PHPStan to commit e0cf36dd465838fabf79e30b6f856e00739db913 -
9a94795
Updated PHPStan to commit 8ad5d3fd3510ba2b8f3104c70dc3e25c476bb010 -
e885276
PHPStan 1.6.1 -
a9efdf3
Updated PHPStan to commit 9e27a1775db4d487e31126326eb895431ace5622 -
17f36ab
Updated PHPStan to commit 2f49187491aa034d37d2728deb4ee8f5e1102aa6 -
5a8fb50
Swiftmailer bug reproduction - 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)