Bump phpstan/phpstan from 1.10.39 to 1.10.42
Bumps phpstan/phpstan from 1.10.39 to 1.10.42.
Release notes
Sourced from phpstan/phpstan's releases.
1.10.42
This release closes 25 issues!
🎉 Major new features
🚀
- PHP 8.3 - support for natively typed class constants (RFC)
- PHP 8.3 - support for
#[\Override]
attribute (https://github.com/phpstan/phpstan-src/commit/e9a563993f76e2504e4f6640a5a3da2e86ba8808) (RFC)
- New configuration option:
checkMissingOverrideMethodAttribute
(https://phpstan.org/config-reference#checkmissingoverridemethodattribute) (https://github.com/phpstan/phpstan-src/commit/ac4d3de8df284308b4879a5a01168a10c18c0bea)Bleeding edge
🔪
- Detect overriding
@final
method in OverridingMethodRule, #9135- MethodSignatureRule - look at abstract trait method (https://github.com/phpstan/phpstan-src/commit/5fd8cee591ce1b07daa5f98a1ddcdfc723f1b5eb)
- MagicConstantContextRule (#2741), #10099, thanks
@staabm
!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
🔧
- Add ConstantsInTraitsRule (#2718), thanks
@paulbalandan
!- Add NoncapturingCatchRule (#2721), #8663, thanks
@paulbalandan
!- Detect non-abstract methods with no body (#2730), #4244, thanks
@paulbalandan
!- Detect properties declared in interface (#2731), #8915, thanks
@paulbalandan
!- Add VariadicParametersDeclarationRule (#2733), #3802, thanks
@paulbalandan
!- Add InvalidCallablePropertyTypeRule (#2745), #4424, thanks
@paulbalandan
!- ConflictingTraitConstantsRule (https://github.com/phpstan/phpstan-src/commit/f94a3c365e6bd089695376e06f9abdf81f9f24fc)
- Read class constant type when generalizing the type for
dynamicConstantNames
(https://github.com/phpstan/phpstan-src/commit/cb9571b5c0b34bd0e26c9d085281842b3d829e6c)- Rework prototype searching in OverridingMethodRule (https://github.com/phpstan/phpstan-src/commit/4b2ffb82f12c98e65dd6387976cabf8bebc0dc39), #10101, #7541, #10043, #7859, #8081, #8500, #9014
- OverridingMethodRule - search for method prototype in traits (https://github.com/phpstan/phpstan-src/commit/2df14af6e13cfa2b725c325f3f39eb87476d37bd)
- VarTagTypeRuleHelper: fix widening array shapes (#2738), #10130, thanks
@janedbal
!- Note about Xdebug with
--debug
(https://github.com/phpstan/phpstan-src/commit/c534f8cc79680e63a418760aa000c5bb7e3dfb0b)- FunctionSignatureMapProvider - cache data statically (https://github.com/phpstan/phpstan-src/commit/394064bb332d9bdd988895f9c63de6eb9ea538c5), #10039
Bugfixes
🐛
- Star projection is always within template type bounds (#2715), #10097, thanks
@jiripudil
!- Support
non-empty-string
instr_shuffle()
(#2717), thanks@staabm
!- Look if userland prototype has
ReturnTypeWillChange
or not (https://github.com/phpstan/phpstan-src/commit/eb0c7a1308ad6d45eca98e5f034529aca640b513), #9615- Fix wrong tip about returning a list (https://github.com/phpstan/phpstan-src/commit/00adfaa7d1cb427262577df705264701b7de9670, https://github.com/phpstan/phpstan-src/commit/00a9d94685b297d3b1b09d7fe4398b60c3036401)
... (truncated)
Commits
-
fc23165
PHPStan 1.10.42 -
918c47d
Updated PHPStan to commit 918c47dcad1de4dc898290fbce46abf0c54d15b0 -
394064b
Updated PHPStan to commit 394064bb332d9bdd988895f9c63de6eb9ea538c5 -
f384b43
Updated PHPStan to commit f384b43c911ee465abcc479d3efddf97ba2309f8 -
9697760
Updated PHPStan to commit 9697760608c91afbbe489532b61158d281692e56 -
c39c4cc
Update Larastan -
8d460ac
Updated PHPStan to commit 8d460ac1d731a0812290c137af142307812a6d8b -
256e8dc
Updated PHPStan to commit 256e8dcfb629265e8c1ecac75a6348a11a630738 -
c534f8c
Updated PHPStan to commit c534f8cc79680e63a418760aa000c5bb7e3dfb0b -
67893d4
Updated PHPStan to commit 67893d4b5cd7c82c83a9e9296c106bee7a52c4e9 - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts