Update dependency phpstan/phpstan to v1.10.51
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
1.10.50 -> 1.10.51
|
Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.10.51
🔪
Bleeding edge - ParamAttributesRule - promoted property attribute needs to target both parameters and properties (https://github.com/phpstan/phpstan-src/commit/25d15526dbe59216f2b42aaa88a2be23bf9cbf44), #10298
- More precise
RecursiveIteratorIterator::__construct()
parameter types (#2835), thanks @staabm! - PhpDocParser: add config for lines in its AST & enable ignoring errors within PHPDocs (#2807), thanks @janedbal!
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 - Missing ThrowExprTypeRule - level 3 (https://github.com/phpstan/phpstan-src/commit/0359ebc78fa7bc5ed1b3b4032c68363ce70ab673)
- Analyse stubs only when not only files are analysed (https://github.com/phpstan/phpstan-src/commit/402024091b215dca7d91b74c415293323d2dbadc)
- Nicer error message in case of memory limit exhaustion in child process (https://github.com/phpstan/phpstan-src/commit/816be99361d263df24bf1e7fa078df62fb63d1d7)
🐛
Bugfixes - Narrow
ReflectionEnum::getBackingType()
afterReflectionEnum::isBacked()
(#2830), #10167, thanks @staabm! - Fix coalescing on an optional array offset (#2834), #10317, thanks @rvanvelzen!
- More precise
??
type inference (https://github.com/phpstan/phpstan-src/commit/d801919e356a8cecc33b06046311aa036d2492ff), #10327
🔍
Internals - phpstan-src is now downgraded for PHP 7.2+ with
ondrejmirtes/simple-downgrader
- Forward-compatible changes with PHP-Parser 5 (https://github.com/phpstan/phpstan-src/commit/436bd791bf256ca59334f2746e70a58d581d8574, https://github.com/phpstan/phpstan-src/commit/7eb66f6bd643fc95f8353b3b273c29514ddd8619, https://github.com/phpstan/phpstan-src/commit/bf0b138fbed6fb0960ca696869cc9f5f787d4261), #5086
- Use
str_starts_with()
andstr_contains()
instead ofstrpos()
(#2841), thanks @zonuexe! - Building preload script - sort by name for reproducible builds (https://github.com/phpstan/phpstan-src/commit/995de26a4b8009c4e89159683c4e602290dbc508)
- Lazier creation of ParameterAcceptor (#2843), thanks @staabm!
- Use const instead of properties (#2815), thanks @zonuexe!
- PhpDocValueRule: cheapest check first (#2824), thanks @staabm!
- Faster
ParametersAcceptorSelector::combine()
(#2851), thanks @staabm!
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.