Bump phpstan/phpstan from 1.3.0 to 1.4.0
Created by: dependabot[bot]
Bumps phpstan/phpstan from 1.3.0 to 1.4.0.
Release notes
Sourced from phpstan/phpstan's releases.
1.4.0
This release fixes 25 issues!
🎉 Major new features
🚀
- Support for PHP 8.1
readonly
properties (RFC)
- Readonly properties must be assigned in the constructor of the declaring class
- Memoized type of a readonly property is not invalidated even when calling a method with side effects
- Readonly properties cannot be passed by reference
- Improved detection of incorrect types assigned to properties:
Improvements
🔧
ParametersAcceptorSelector
- message forShouldNotHappenException
(https://github.com/phpstan/phpstan-src/commit/d3c34832c7e27ee068cef99c437add30cce5ad23), #6328- Constructor of
BenevolentUnionType
is covered by BC promise (https://github.com/phpstan/phpstan-src/commit/8f28dc8453f0da1f1476fe2f732e7be3f209d726)Bugfixes
🐛
- Fix PHPDocs with
require
statement (https://github.com/phpstan/phpstan-src/commit/b5a2c8f2b5f0b87c09f87a1457610212e688d6e2), #6348- Fix inferring template types in
ClosureType
(#921), thanks@canvural
!- Fix
random_int()
without args crash (https://github.com/phpstan/phpstan-src/commit/6d7ba0f0db550df34aac51af3a0f8f13e710ca0c), #6361Thanks to some internal refactorings listed below, the following issues have been fixed: #5337, #4910, #5316, #5607, #3766, #3858, #3310, #3264, #2806, #5328, #3044, #6184, #3339, #5656, #5362, #3867, #5707
- Fix scope after for-loop (https://github.com/phpstan/phpstan-src/commit/4fb1a77b02415356c98fd86323cdc19495b652dd)
- Improve preserving
ConstantArrayType
after setting new offset (https://github.com/phpstan/phpstan-src/commit/ec117fa2aec96ea1aef1190c3decb9d945219e21)ConstantArrayTypeBuilder
- preserveConstantArrayType
for integer range offsets (https://github.com/phpstan/phpstan-src/commit/3eab4628f2f031456eb320b43f9c722ab419d370)- Fix generalizing
ConstantIntegerType
in Scope (https://github.com/phpstan/phpstan-src/commit/d6c7595ba5ee9ea6ff137082fe3a59d8803962ae)- Scope generalization for integer range types (https://github.com/phpstan/phpstan-src/commit/36513388a628fac652f5d9cc5db8c6cdf21a175e)
Function signature fixes
🤖
- Changed signature of
gmp_div
(#915), thanks@danielmarschall
!PDO::prepare()
might returnfalse
(#916, https://github.com/phpstan/phpstan-src/commit/a9881e3afd4a105f0bd1391fb57a8e5c3462d2bc), thanks@staabm
!- More precise
preg_match*
return type signatures (#918), thanks@staabm
!1.3.3
Improvements
🔧
- ThrowableReturnTypeExtension honors
@method
tag forgetCode()
method above child Exception classes (https://github.com/phpstan/phpstan-src/commit/e04cc8dfb8f6b3a2c4ac399232a6691baed1d162)- Development repository
phpstan/phpstan-src
now uses promoted properties (phpstan/phpstan-src#910)1.3.2
Improvements
... (truncated)
Commits
-
72b04d9
PHPStan 1.4.0 -
57932e4
Updated PHPStan to commit cbb796380815485a9986a0945f1c5b6657a60ba1 -
d6b0f46
Updated PHPStan to commit 44fd938c30de5ee87f41b9c97b3d79ec18a731fa -
15bcf03
Updated PHPStan to commit 28bd563fbafe2f4a884a6e77bba0149df98a8b93 -
890348f
Updated PHPStan to commit 456a41940b1b045087c5549a4043651aa77b7823 -
05ccf02
Updated PHPStan to commit d50d5e4f4bce7699751c4a09a20cc7ee4057ce28 -
3b8834d
Updated PHPStan to commit e64d6142589df16bf526f4217a561f00600c869c -
e680a21
Updated PHPStan to commit 7ca26f7d82b27dfa38913b737568951bbd3363c8 -
5b33059
Update PHPUnit baseline -
2177005
Updated PHPStan to commit 6d7ba0f0db550df34aac51af3a0f8f13e710ca0c - 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)