chore(deps): update dependency phpstan/phpstan to v1.9.7
-
Review changes -
-
Download -
Patches
-
Plain diff
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
1.9.4 -> 1.9.7
|

Dependency Lookup Warnings 


Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.
Release Notes
phpstan/phpstan
v1.9.7
Bleeding edge 

- Empty
skipCheckGenericClasses
(https://github.com/phpstan/phpstan-src/commit/28c2c79b16cac6ba6b01f1b4d211541dd49d8a77)
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 

-
UnionType::pickTypes
overriden inBenevolentUnionType
for a more benevolent behaviour (https://github.com/phpstan/phpstan-src/commit/480626ecb52d2e98cc28cee8a18dfb86112b7f8f)
Bugfixes 

- Fixed incorrect while loop logic (https://github.com/phpstan/phpstan-src/commit/091fcafb07ac0b3eb261285c049d9c0f214a535c), #8643
- Fixed scenario with zero analysed files (https://github.com/phpstan/phpstan-src/commit/6debffdb5892f7fb311a60634ec9cda79b6e3154)
Function signature fixes 

-
min()
andmax()
do not returnfalse
on PHP 8 (#2161), thanks @staabm! - Fix a few MongoDB definitions (#2140), thanks @UCIS!
Internals 

v1.9.6
Improvements 

- Show combined memory usage in parallel mode (#2027), #4683, thanks @janedbal!
Bugfixes 

- One-part encapsed string is correctly converted to string (https://github.com/phpstan/phpstan-src/commit/dc77608ee9ab22e352cd3df60ce2bc2d8d135abc), #8635
- Conditional expressions - do not take conclusions about identical variable in assignment (https://github.com/phpstan/phpstan-src/commit/cde53d19e9b4edf81f4c469b7f2a2c3634004d86), #8625, #8621
v1.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!
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Merge request reports
Activity
- Approvals
- Assignees & reviewers
- Comments (from bots)
- Comments (from users)
- Commits & branches
- Edits
- Labels
- Lock status
- Mentions
- Merge request status
- Tracking
- Jan 07, 2023
-
-