Update PHPStan packages
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
1.12.7 -> 1.12.9
|
phpstan/phpstan-symfony | require-dev | patch |
1.4.11 -> 1.4.12
|
Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.12.9
🔧
Improvements - Support
@readonly
PHPDoc on the class as alternative to@immutable
(#3523), #11775, thanks @herndlm!
🐛
Bugfixes - Fix too early lowercase-string inference (#3585), #11852, thanks @VincentLanglet!
- Support
for
endless loops (#3573), #6807, #8463, #9374, thanks @herndlm! - More precise types for
preg_match
greater than0
(#3612), #11293, thanks @staabm! - Too-wide return type - do not report void in PHPDoc union type (https://github.com/phpstan/phpstan-src/commit/5f0b1ccfa47060c209ead7116005214183c0e56f), #11980
- Too-wide return type - allow
void
return type in a union when the returned expr is originallyvoid
(https://github.com/phpstan/phpstan-src/commit/80c1df2d73210227776db5443dbc28c2d71fa289), #11980 - RichParser - fix
@phpstan-ignore
with trait in the same file (https://github.com/phpstan/phpstan-src/commit/381c1370e7ce3b1c2d8de6c5b30913908c362eb8), #11981
🔍
Internals - Result DTOs - make reasons unique (https://github.com/phpstan/phpstan-src/commit/ccfb4ab7a19151925b9434e3245892006b3d9dcd)
v1.12.8
🔧
Improvements - OffsetAccessValueAssignmentRule optimization for huge arrays (https://github.com/phpstan/phpstan-src/commit/a07996a9cad15c0c6e6e8fd57338236734a5c0dd)
- Fix performance issue with big appended arrays (https://github.com/phpstan/phpstan-src/commit/537c12c0c3f14371ceaf59051fc5445339857a97), #11913
- processAssignVar optimization for arrays (https://github.com/phpstan/phpstan-src/commit/16f63b3a48105ddce37d816e157f004fe9164cf9),
- Another micro optimization (https://github.com/phpstan/phpstan-src/commit/c04555b9387dea448a5649348546e9629063dda8)
- Optimization of huge unions of oversized arrays (https://github.com/phpstan/phpstan-src/commit/4dfbe16ed9cdf0808027f3bcbdb26980ec39df3f)
- Avoid new HasOffsetValueType being intersected with oversized array (https://github.com/phpstan/phpstan-src/commit/deef91983766dd61c18d4f9d819ffc94fb701cd5)
- Add ArrayFindFunctionReturnTypeExtension (PHP 8.4) (#3518, #3608), thanks @zonuexe!
🐛
Bugfixes - Do not transform
$this
in return type even in final classes (#3599), #11857, thanks @calebdw! - Exclude
E_DEPRECATED
from error_reporting (https://github.com/phpstan/phpstan-src/commit/277e34b23a43b7ff0cca0c141789d0a786690e9b), #11937 - More precise types in immediately invoked callables (#3593, #3602), #11561, #11945, thanks @staabm!
- Only use last for condition to filter scope (#3578), thanks @herndlm!
- Preserve correct UnionType subclass in
filterTypes()
(#3535), #11663, thanks @VincentLanglet!
🤖
Function signature fixes -
Imagick::writeImage(s)File
supportingformat
parameter (#3588), thanks @kingjia90!
🔍
Internals - Remove unnecessary
instanceof ConstantBooleanType
in loop analysis (#3577), #11913, thanks @herndlm! - NodeScopeResolver - refactoring before optimization (https://github.com/phpstan/phpstan-src/commit/1a0099dc61674ff1eb0ef8d68c90011f2206a64b)
- Add
@api
to TypeExpr (#3601), thanks @ruudk! - Split ArrayFilterFunctionReturnTypeExtension to Helper (#3606), thanks @zonuexe!
- Introduce
UnionType::filterTypes
(#3607), thanks @VincentLanglet!
phpstan/phpstan-symfony (phpstan/phpstan-symfony)
v1.4.12
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.