Update dependency phpstan/phpstan to v1.11.7
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
1.11.5 -> 1.11.7
|
Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.11.7
🔧
Improvements - Rework
match
expression analysis with enum with performance in mind (https://github.com/phpstan/phpstan-src/commit/b98abe01ca2a589c964970ea42128ae9b752890b), #11263 - DiagnoseExtension (https://github.com/phpstan/phpstan-src/commit/d55933fa0c8d6c9d91c5d30f70313e1c15b2c7f9)
- This extension can output any diagnostic information to stderr after analysis
- PHPStan displays this information when running the "analyse" command with
-vvv
CLI option.
- Result cache - debug message about successfully restored cache (https://github.com/phpstan/phpstan-src/commit/979055fceeaefec30c1eded52550012f0c1333b6)
- Show a hint about
-vv
for unignorable errors when generating the baseline (https://github.com/phpstan/phpstan-src/commit/d931c8987563fbe5a05e411722a6f53da6f1b555), #3973 - Limit the depth when resolving closure type for performance reasons (https://github.com/phpstan/phpstan-src/commit/2c08dfa8d0f975654d52fe279a950c54415076b5?w=1), #11283
-
MutatingScope::resolveType()
- cache closure body analysis data (https://github.com/phpstan/phpstan-src/commit/fd3115652b76278fa6ddf8ba40b41fc751642153), #11283
🐛
Bugfixes - Observe
@no-named-arguments
above class (https://github.com/phpstan/phpstan-src/commit/815270d8933b9cdefa4613f0baf17bcbff91be6f), #11275 - Fix
count()
narrowing on $matches (#3210), #11277, thanks @staabm! - Try preventing "Method was not found in reflection of class" when getting a method prototype (https://github.com/phpstan/phpstan-src/commit/25658f64f0bcfe784893104864d92032cce33e96), #11269, #11251
- RegexArrayShapeMatcher - support resetting non-capturing groups (#3212), #11291, thanks @staabm!
- Prevent out-of-memory errors while regex array shape inference (#3213), #11292, thanks @staabm!
🤖
Function signature fixes -
getimagesize
,getimagesizefromstring
: zero is a possible value for height and width (#3207), thanks @mfruehauf!
🔍
Internals - Faster
ObjectType::getEnumCases()
(#3203, #3204), #11263, thanks @staabm! - Update composer-dependency-analyser to 1.6.0 (#3205), thanks @janedbal!
v1.11.6
🔪
Bleeding edge - Precise array shapes for
preg_match()
for$matches
by-ref parameter (#2589), thanks @staabm! - Improved the type of the
$mode
parameter for thecount()
(#3190), thanks @kuma3!
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 - PHPStan Pro - report fatal errors more nicely (https://github.com/phpstan/phpstan-src/commit/a99c71e3bed8f393fad26faaab5def7a5bfa0c03)
- PHPStan Pro - do not repeat ProcessCrashedException in CLI output because it's already presented in the UI (https://github.com/phpstan/phpstan-src/commit/6e700418d6609c51154d672a197e43bd74fa761f)
- Add Cloudflare CA to composer/ca-bundle cacert.pem (https://github.com/phpstan/phpstan-src/commit/30f68ba7555e88ad9bdb326a1bed735d79fb29ea)
- Implement ParameterOutTypeExtensions (#3083), thanks @staabm!
- Do not output some internal errors twice (https://github.com/phpstan/phpstan-src/commit/4f75ba6bdc856ed6db4ba2862b610394cdbfbf15, https://github.com/phpstan/phpstan-src/commit/9967f48574a045af8305ebbcc585f6951e013a36)
- Forbid _HumbugBox prefixed classes (#3186), thanks @staabm!
🐛
Bugfixes - Fix return type of sprintf with single
%s
format (#3167), #11201, thanks @pilif! - Add PCRE_VERSION predefined constant (#3169), #11202, thanks @curry684!
- Cast non-zero IntegerRangeType toString() is a non-falsy-string (#3170), thanks @staabm!
- More precise
UnitEnum::cases()
return type (https://github.com/phpstan/phpstan-src/commit/32f351a24ce103f120f413cd104bc411608df109), #11244, #11233 - Reset remembered match cond when entering match (https://github.com/phpstan/phpstan-src/commit/07995276abd80b766407534055f58592ffe1a1a5), #11246, #9879, thanks @jdecool!
🤖
Function signature fixes - Fix type of return value for
WeakMap::offsetGet()
(#3165), #11194, thanks @sonnymilton! - Treat SplFileObject methods as impure/having side effects (#3174), #11200, thanks @mind-bending-forks!
- More precise
getimagesize*
return type (#3183), thanks @staabm!
🔍
Internals - Prevent unnecesary calls to
Type::isSuperTypeOf()
(#3164), #11194, thanks @staabm! - Update phpcs config with proper exclude pattern (#3150), thanks @thg2k!
- Use bashunit for e2e tests (#3160), #11202, thanks @staabm!
- issue-bot: subshell is eating the exit code (#3171), thanks @staabm!
- Fix typo in FunctionDefinitionCheck (#3176), thanks @szepeviktor!
- Add spelling workflow (#3179), thanks @szepeviktor!
- Refactor SprintfFunctionDynamicReturnTypeExtension (#3187), thanks @staabm!
- Simplify SprintfFunctionDynamicReturnTypeExtension (#3188), thanks @staabm!
- Added regression test (#3198), thanks @staabm!
- Use early-returns in TypeCombinator (#3197), thanks @staabm!
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.