Update dependency phpstan/phpstan to v1.10.43
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
phpstan/phpstan |
1.10.41 -> 1.10.43
|
Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.10.43
🔧
Improvements - Update
phpstan/phpdoc-parser
- Fix HTML description detection for PhpStorm stubs (https://github.com/phpstan/phpdoc-parser/pull/220), thanks @schlndh!
- Make
ReflectionEnum
generic (https://github.com/phpstan/phpstan-src/commit/9ce8faf53c7a78c7887a2c33f9d34944605d6aae)
🐛
Bugfixes - Merge right scope of
??=
with scope before the expression (https://github.com/phpstan/phpstan-src/commit/846f44ee6e027853352674052510bc172a1bfc89), #10151, #10131 - Fix return type of parent calls for SplHeap and other internal methods (#2622), #7162, #9867, thanks @schlndh!
-
stdClass
does not have__get
method (https://github.com/phpstan/phpstan-src/commit/baf359ea3cfa99368eb94d80887cfd7bb0a00b85), #10149 - Fix signature check of method from trait (https://github.com/phpstan/phpstan-src/commit/be2b4152837ce05273c55937b8a56daa19cb4d81), #10153
- All
universalObjectCratesClasses
allow dynamic properties (https://github.com/phpstan/phpstan-src/commit/2ec416e11202f150b880619c5bc6416bf17b8e3e) - Fix infinite recursion with self-referencing class constant (https://github.com/phpstan/phpstan-src/commit/93af41bf52b47bbfbc533efea75f515a4caddc0e), #10147
🔍
Internals
v1.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)
- New configuration option:
🔪
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)
- Fix parameter names for multi-variant functions (#2726), #9018, #9399, #9923, #9823, thanks @schlndh!
- Fix iterator_to_array, iterator_count for PHP 8.2 (#2625), #9793, #7760, thanks @schlndh!
- Update array_filter signature to allow null as callback (#2740) (#2740), thanks @andyexeter!
🤖
Function signature fixes - Fix return value of
mailparse_msg_get_part()
(#2722), thanks @jlherren! - Update functionMaps (#2699), thanks @zonuexe!
- Change
iptcparse
return type (#2727), thanks @ManuelHu!
🔍
Internals - Create DirectoryCreator helper class (#2697), thanks @CalebDW!
- Use PHP 8.3 in Name Collision Detector (https://github.com/phpstan/phpstan-src/commit/8cd239e1fbaebcc5d4a57a757724e31ad4b6e36b)
- Golden test for reflection (#2679), thanks @schlndh!
- Fully qualify the name of the
#[\Override]
attribute in error messages (#10136), thanks @TimWolla! - RuleTestCase - allow null tip (https://github.com/phpstan/phpstan-src/commit/f384b43c911ee465abcc479d3efddf97ba2309f8)
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.