Bump phpstan/phpstan from 1.9.4 to 1.9.5
Bumps phpstan/phpstan from 1.9.4 to 1.9.5.
Release notes
Sourced from phpstan/phpstan's releases.
1.9.5
Improvements
🔧
- Improve constant string union handling for concat and encapsed string (#2057), thanks
@schlndh
!- PhpVersion: supportsDisjunctiveNormalForm (#2130), thanks
@janedbal
!- Constant scalar types might accept general type from the same family (#2131) - this moves some errors from earlier levels to level 7
- Implement OversizedArrayBuilder to improve huge constant array performance (#2116), #8215, thanks
@staabm
!- Improve performance again by dumbing down nested arrays (#2077)
- Result cache should not be invalidated by changes to editorUrl, editorUrlTitle and errorFormat parameters (#2136), thanks
@bendavies
!- Faster
MutatingScope::shouldInvalidateExpression()
(#2139), thanks@staabm
!- Add
ReturnStatementsNode::hasNativeReturnTypehint()
(#2141), thanks@janedbal
!- TypeNodeResolver -
lowercase-string
andnon-empty-lowercase-string
are known (https://github.com/phpstan/phpstan-src/commit/884ceb015c68e8c40a066732b4bc873bed568d38)Bugfixes
🐛
- OversizedArrayType contains at least 1 element (#2126), thanks
@staabm
!- Fix
pathinfo($s, PATHINFO_ALL)
return type (#2014), thanks@staabm
!- Bump fidry/cpu-core-counter version (#2133), thanks
@czukowski
!- Fix
MixedType::hasOffsetValueType()
for subtracted types (#2135), #6705, thanks@herndlm
!- Fix dumbed down arrays (#2137), #8004
- Return type of
parent::__set_state()
method is only object (#2138), thanks@blankse
!- Fix fatal error when autoloader opens directories (#2154), thanks
@staabm
!- Fix returntype for DateInterval::createFromDateString (#2038), thanks
@verfriemelt-dot-org
!- Fix hasSideEffects for AnnotationMethodReflection (#2155), thanks
@VincentLanglet
!- Fix constant-string handling in union-types (#2134), #8568, #8562, thanks
@staabm
!- IntersectionType - check if it's an oversized array and return benevolent union in getOffsetValueType (https://github.com/phpstan/phpstan-src/commit/80b5cdd3ecf173f0aaa7354d28537167905aec7c)
Internals
🔍
- Use isArray, isConstantArray instead of instanceof in TypeCombinartor::union (#2118), thanks
@rajyan
!- Fix typo (#2127), thanks
@rajyan
!- AnalyserIntegrationTest - run with bleedingEdge (https://github.com/phpstan/phpstan-src/commit/db2de6f17469e9bc0d078e09c895d64a39fe14ca)
- Refactor options handling in
FilterVarDynamicReturnTypeExtension
(#2120), thanks@herndlm
!- Add
Type::isScalar()
(#2149), thanks@herndlm
!- Removed unused fileName in FetchedNode (#2150), thanks
@staabm
!- Removed unused NodeList class (#2151), thanks
@staabm
!- Add namespace to bug-8573.php / fix
GenericsIntegrationTest
(#2147), thanks@herndlm
!
Commits
-
4d18c5d
PHPStan 1.9.5 -
67cfce4
Update Doctrine ORM baseline -
bfbda97
Updated PHPStan to commit 80b5cdd3ecf173f0aaa7354d28537167905aec7c -
5e2fd8f
Update Larastan baseline -
2de8458
Made analysing Drupal faster, probably thanks to lower memory consumption -
28c14ea
Update playground-api -
5e91945
Update dependency@types/jquery
to v3.5.16 -
228820b
Test webmozart/assert integration tests -
8764bac
Updated PHPStan to commit 884ceb015c68e8c40a066732b4bc873bed568d38 -
23ca8c6
Updated PHPStan to commit 463995c7e23db156aab35d58a43809924a1386ad - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts