Bump phpstan/phpstan from 1.8.2 to 1.8.3
Created by: dependabot[bot]
Bumps phpstan/phpstan from 1.8.2 to 1.8.3.
Release notes
Sourced from phpstan/phpstan's releases.
1.8.3
This release fixes 76 issues!
🎉 Improvements
🔧
- Added
non-falsy-string
(truthy-string
) type (#1542, #1660, #1661, #1662), #5317, #5370, #7199, thanks@staabm
!- New configuration option:
checkImplicitMixed
(#1645), thanks@MartinMystikJonas
!- Support constant string-unions in
substr()
(#1532), #7663, thanks@staabm
!- Tagged unions preparation (#1548), #5232, #7511, #7224, #6997, #6556, #6181, #5743, #4708, #3821, #2911, #7156, #6728, #6364, #5758
- Tagged unions (#1547), #6469, #3801, #6599
- Added error message to impossible instanceof rule to warn when comparing a trait (#1570), thanks
@mad-briller
!- Implement
ltrim()
return type extension to supportclass-string
(#1597), #7483, thanks@staabm
!- Improve type inference from conditional return type (#1604), thanks
@rvanvelzen
!- Optimization: ArrayType::setOffsetValueType() - generalize key + item type if it goes over a threshold (https://github.com/phpstan/phpstan-src/commit/24aee609ebf91b0100e2f60b78cde5a785936b81, https://github.com/phpstan/phpstan-src/commit/10ba3c681647b281f774f48fb1843d4b5c75b7da)
- Optimization: ConstantArrayTypeBuilder - generalize key types and value types in degraded general array (https://github.com/phpstan/phpstan-src/commit/dbdcb817fced0f375a420fc3bff44c2d331c856d)
- Make
@psalm-readonly-allow-private-mutation
as alias of@readonly
(#1609), #7774, thanks@zonuexe
!- Implement
gettype()
inference in TypeSpecifier (#1611), #6901, thanks@staabm
!- Use argument types as parameter types for inline closures (#7798) (#1628), #7798, thanks
@leongersen
!- Optimization: inline calls in TrinaryLogic to reduce method call overhead (#1563), thanks
@staabm
!- Handle the expression
expr & number
for positive numbers (#1629), thanks@thg2k
!- Add type specifying extension for
ctype_digit
(#1635), thanks@fluffycondor
!array_flip()
for constant arrays (https://github.com/phpstan/phpstan-src/commit/a6cec395f64806bd12522926970843423f3f7290)array_filter()
for constant arrays (https://github.com/phpstan/phpstan-src/commit/771b860d0c7ca73bfb255df4c14cffa97caada93)array_intersect_key()
for constant arrays (https://github.com/phpstan/phpstan-src/commit/a96cdf2bf5cf2b145a5c0fbbe007776e8d7bd7b8)- Enfore optional parameters in callable types (#1354), #7320, thanks
@rvanvelzen
!- Optimization: match/enum performance (https://github.com/phpstan/phpstan-src/commit/092ef3be68a8e478dec09bbeb779fff46b09c023)
- Optimization: TrinaryLogic - lazy evaluation methods (https://github.com/phpstan/phpstan-src/commit/f8f6e2a8df9499e5f9603935a2557964c285fae4)
Bugfixes
🐛
- Support
ConstantArrayType
callables with union values (#1529), #2343, thanks@herndlm
!- PHPDoc readonly rules do not report for native readonly props (#1521), #7648, thanks
@herndlm
!- Fix error for custom autoloaders calling
eval()
(https://github.com/phpstan/phpstan-src/commit/058d739904a9f0641e5643fd8b089d2203f9c1d3), #7647- Remove undefined constants from scope (#1534), thanks
@herndlm
!- Fixed double reporting of promoted properties (#1533), #7662, thanks
@mad-briller
!- Fixed extracting PHP 8 stubs (https://github.com/phpstan/php-8-stubs/commit/363a282adde9457b2158580df4da8d83c7d95527), #7676
- Remove old
pg_*
functions with multiple variants from signature map on PHP 8.1 (https://github.com/phpstan/phpstan-src/commit/8128a63348918ee3d94eb8ba513252c1188b5cc3), #7138- Fix ObjectType resolving inside bound Closure (#1543), #7675, thanks
@herndlm
!- Fix
in_array
non-empty-array type specification (#1545), #7684, thanks@herndlm
!- Fix incorrect mixed template type for impossible union template type intersection (#1546), #7688, thanks
@rvanvelzen
!- Improve
ConstantArrayType::unsetOffset
(#1537), #5223, thanks@herndlm
!- Fix incorrect incomplete match error for
treatPhpDocTypesAsCertain: false
(#1560), #7622, thanks@rvanvelzen
!- Fix variable certainty after exhaustive switch (#1561), #1016, thanks
@rvanvelzen
!- Fix resolving variants for union type methods (#1574), #7593, #6946, #5754, thanks
@rvanvelzen
!- Fix assigning arbitrary expressions in foreach key (#1582), #7737, thanks
@rvanvelzen
!- Assume offset value set was successful for further analysis (https://github.com/phpstan/phpstan-src/commit/1537424191a4cf27577dd3cfc07d162b09c20a12), #7469, #3391, #7417
- Support removing
class-string
s fromGenericClassStringType
(#1590), #7698, thanks@staabm
!- Fix
Array_
expr type resolving with unpacked array items (#1586), #7724, thanks@herndlm
!
... (truncated)
Commits
-
5583623
PHPStan 1.8.3 -
63dd1eb
Updated PHPStan to commit c057aa9d1feff5ce61f96f397ef92e7389a17477 -
0cec633
Update Prestashop baseline -
5d6a147
Updated PHPStan to commit 024738fcc7fe98eec72a274ee742a51442a681a3 -
c1878ca
Updated PHPStan to commit 4291a2494a3295274a1d37002b29908b8fe79f49 -
6383edb
Updated PHPStan to commit ca616c3340923b58c972aedec8732d34cc1dbb96 -
5d994a3
Updated PHPStan to commit 5e54dbd526a8cef50593fe9e5241c071d800a738 -
7f87750
Updated PHPStan to commit fc69708ceca99cfeb52a553533bec9b369d4dd61 -
d2cd5e2
Updated PHPStan to commit 169af1dcf09cdbf90471155f370c93cf37e36693 -
3b9884e
Updated PHPStan to commit 2a03c92512f990779d504b37a9a62d7fe49b84a3 - 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)