Bump phpstan/phpstan from 0.12.94 to 0.12.96
Created by: dependabot[bot]
Bumps phpstan/phpstan from 0.12.94 to 0.12.96.
Release notes
Sourced from phpstan/phpstan's releases.
0.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)0.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
... (truncated)
Commits
-
a98bdc5
PHPStan 0.12.96 -
dc2dd56
Updated PHPStan to commit 68495e8a965118464f42927ae7941721bda03ec3 -
3bc57a0
Updated PHPStan to commit 24f6264bac7af157bb4efdd34a8536f6445c6ac3 -
cac7327
Updated PHPStan to commit 662a3963722a0b08cc4d225ed5e90e8fbaad0707 -
c387488
Updated PHPStan to commit 9762d371ebb2663ada1e6947d2edc685330011ee -
4ffddfe
PHPStan 0.12.95 -
d570c1c
Update PMMP baseline -
d433129
Update PHPUnit baseline -
77091ac
Update Rector baseline -
e30a5ac
Updated PHPStan to commit 119facc64db3acd77b8024fafa8bb3228e90cb25 - Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)