chore(deps): update dependency phpstan/phpstan to v0.12.96
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
0.12.94 -> 0.12.96
|
Release Notes
phpstan/phpstan
v0.12.96
- OverridingPropertyRule - relax checking PHPDoc types (https://github.com/phpstan/phpstan-src/commit/24f6264bac7af157bb4efdd34a8536f6445c6ac3), #5494
- Add
PHP_WINDOWS_*
constants todynamicConstantNames
(https://github.com/phpstan/phpstan-src/commit/9762d371ebb2663ada1e6947d2edc685330011ee)
v0.12.95
🔧
Improvements - Support
@var
above class constants (https://github.com/phpstan/phpstan-src/commit/b932769213234a3ee78c39c7505ded5fade3568c), #4361, #3530 - Removed lossy type optimization:
TypeCombinator::CONSTANT_SCALAR_UNION_THRESHOLD
(https://github.com/phpstan/phpstan-src/commit/c56d866e63d6cd9eb80eecc9c7f1c989b2110cd3), #5447, #5454, #4925, #4793, #5062, #3366, #3555-
TypeCombinator::union()
- new optimization for constant scalar types (https://github.com/phpstan/phpstan-src/commit/da9e0613b8c21f0263680715da6986c921a75840)
-
- Final constant rule (PHP 8.1) (https://github.com/phpstan/phpstan-src/commit/6be077e92dfa11d2bddddd4a86669139bf3c716e)
- Readonly property rule (PHP 8.1) (https://github.com/phpstan/phpstan-src/commit/502596f1a1ee3ec319bab13462bb74294ff4f770)
- Deprecated wrongly-named
PhpPropertyReflection::hasPhpDoc()
(https://github.com/phpstan/phpstan-src/commit/d78d60a286fc094593586f596c05f5ff997fe2d7) - Use IntegerRangeType in modulo-operator (#614), thanks @staabm!
🔪
Bleeding edge - IncompatibleClassConstantPhpDocTypeRule (https://github.com/phpstan/phpstan-src/commit/780a54cd0149d8cb5a62bb1ef6fa2b0871114ee5)
- OverridingConstantRule (https://github.com/phpstan/phpstan-src/commit/89acb0db4400c95b231ae74830e8607d72824cbc)
- OverridingPropertyRule (https://github.com/phpstan/phpstan-src/commit/0f4885aa101e0cc49f906e72990e356bd281ec63), #4281
- Private method called through
static::
(https://github.com/phpstan/phpstan-src/commit/bad2607a032787d822a1a8f91d5176455eac8693) - Private property accessed through
static::
(https://github.com/phpstan/phpstan-src/commit/d8e89538ac84236cb3c40ea85b524e4f7cc30852) - Private constant accessed through
static::
(https://github.com/phpstan/phpstan-src/commit/270326a1ed22398a98b15880e12a3b8015a83c4a)
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
🐛
Bugfixes - Scalar type in PHPDoc can mean an existing class (https://github.com/phpstan/phpstan-src/commit/cdf9cb50129502217aca5a3d9ee3ed0c3795a148), https://github.com/phpstan/phpstan/discussions/5392
-
DateTime|DateTimeInterface
union acceptsDateTimeInterface
(#586), thanks @VincentLanglet! - Make default
parallel.processTimeout
10x bigger (https://github.com/phpstan/phpstan-src/commit/abb4378d635d1b8caaa2b5bd50e0304eec396f5f), #5341 - ParallelAnalyser - do not allow to go below the default timeout (https://github.com/phpstan/phpstan-src/commit/2f1615bdfdd439bda946b52df46804dc56c2c289)
-
ZEND_
dynamic constants (#613), thanks @dktapps! -
PDOStatement
implementsIteratorAggregate
on PHP 8 (https://github.com/phpstan/phpstan-src/commit/dec054d330550d4706870b3cdbbd5c51e2880876), #5436 - Assure GitLab error formatter have integer line properties (#616), thanks @simonhammes!
- Fix inferring template type from
non-empty-string
(https://github.com/phpstan/phpstan-src/commit/6a33de94e447fdfdb8a67ac374e971dc2673fc5a), #5372 - AppendedArrayKeyTypeRule - more precise type description (https://github.com/phpstan/phpstan-src/commit/aa9e2e8f4969ea89976e5781f0381b8201944b55)
- Fix casting
non-empty-string
array key type (https://github.com/phpstan/phpstan-src/commit/7172e5fc42154dbc73e78068bf12dbe3e27f9af5), #5372 - Fix
TemplateTypeMap::isEmpty()
(https://github.com/phpstan/phpstan-src/commit/f7250dbe9b23415f02961edc5f34e3f084e2b659) - Fix fetching class constants on object instances (https://github.com/phpstan/phpstan-src/commit/4cb02d15c326be71c8d1eeb0227a4931398928bb), #2959
- Do not produce reflection error for unknown constants in class constants (https://github.com/phpstan/phpstan-src/commit/29fcf80e1676f1a13ee04e88db6dbeb8685b58e1)
🤖
Function signature fixes - change return type for
chr()
(#599), thanks @AIlkiv! - Remove wrong return type of
imagejpeg
GD function (#619), thanks @mauriciofauth! - fix return type for gzeof() (#620), thanks @forrest79!
- Fix
openssl_seal()
$iv
parameter (#624), thanks @jlherren! - fix
pg_field_name
prototype (#626), thanks @thierry-f-78! - Fix
Phar
/PharData::extractTo
type information (#628), thanks @Seldaek! - More precise
abs()
return-type (#629), thanks @staabm! -
str_split()
length parameter is always positive (#631), thanks @staabm! - return
non-empty-array
frommb_str_split
/str_split
(#632), thanks @staabm! - Cover
non-empty-string
in more string fuctions (#606), #5350, thanks @staabm! - Added
rand()
dynamic return type extension (#606), thanks @staabm! - Added stub for
WeakMap
(#623), thanks @dktapps! - Add
#[ReturnTypeWillChange]
stub (#618), thanks @zonuexe! - Cover
non-empty-array
inarray_map()
(#601), thanks @Lctrs! - Add dynamic return type extension for
mb_substitute_character
(#607), thanks @TRowbotham! -
strlen
: cover more scalar types (#630), thanks @staabm! - support integer-range type in
min()
/max()
for two arguments (#627), #5072, thanks @staabm! -
array_fill()
: handle negative cases, support integer ranges andnon-empty-array
(#603), thanks @staabm!
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot.
Edited by Bekerle, Patrizio