Bump phpstan/phpstan from 1.8.8 to 1.9.1
Created by: dependabot[bot]
Bumps phpstan/phpstan from 1.8.8 to 1.9.1.
Release notes
Sourced from phpstan/phpstan's releases.
1.9.1
Improvements
🔧
AccessoryArrayListType
is part of BC promise (#1967), thanks@enumag
!- Specify types from true/false asserts (#1957), thanks
@rvanvelzen
!- Support conditional types in phpdoc asserts (#1964), thanks
@rvanvelzen
!- Let casting
object
tostring
result in an error (#1948), thanks@rvanvelzen
!- Add more support for
checkBenevolentUnionTypes
config (#1940), thanks@VincentLanglet
!- Error on unknown parameter name in parameter conditional type (#1966), #8284, thanks
@rvanvelzen
!Bugfixes
🐛
- List type cast to array is still a list (#1958, #1959), #8280, thanks
@rajyan
!- Fix
mt_rand
return type (#1956), #8272, thanks@enumag
!strtr
returnsnon-empty-string
(#1963), thanks@staabm
!1.9.0
Check out the article about this release!
Major new features
🚀
- PHPDoc-based type narrowing with
@phpstan-assert
,@phpstan-assert-if-true
,@phpstan-assert-if-false
(#1317), #7110, #8186, thanks@rvanvelzen
!@phpstan-self-out
/@phpstan-this-out
support (#1799), thanks@rvanvelzen
!
- Can be used to change the type of the current object after calling a method on it. This is useful for generic mutable objects.
- Documentation
@param-out
support (#1804), #7231, #6871, #6186, #4372, #5785, thanks@staabm
!
- Can be used to specify type of function argument passed by reference
- Documentation
- Add extensible
ClassReflection::getAllowedSubTypes()
(#1477), thanks@jiripudil
!- Add config parameter
checkBenevolentUnionTypes
to strictly check BenevolentUnionType (#1930), #8223, thanks@VincentLanglet
!Bleeding edge
🔪
- Array
list
type (#1751), #3311, #8185, #6243, thanks@rvanvelzen
!
- Lists are arrays with sequential integer keys starting at 0
- Improve error wording of the NonexistentOffset, BooleanAndConstantConditionRule, and BooleanOrConstantConditionRule (#1882), thanks
@VincentLanglet
!- MissingMagicSerializationMethodsRule (#1711), #7482, thanks
@staabm
!- Unescape strings in phpdoc-parser (https://github.com/phpstan/phpstan-src/commit/97786ed8376b478ec541ea9df1c450c1fbfe7461)
- Stub files validation - detect duplicate classes and functions (https://github.com/phpstan/phpstan-src/commit/ddf8d5c3859c2c75c20f525a0e2ca8b99032373a, https://github.com/phpstan/phpstan-src/commit/17e4b74335e5235d7cd6708eb687a774a0eeead4)
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
:
... (truncated)
Commits
-
a59c8b5
PHPStan 1.9.1 -
c57a9f7
Update PHPUnit baseline -
c67b9f6
Updated PHPStan to commit d91411b2ab280b5132ffdb93432d9842b938370f -
7054365
Updated PHPStan to commit e3055aec156fb97d6ce0799c4f67aacc0c68d821 -
6e4e657
Updated PHPStan to commit 199f9552ee3b41288c69eb39bc24677c00c9e858 -
485175b
Updated PHPStan to commit 071320dab361ef35597a524cd472eff3e3531490 -
14aacba
Updated PHPStan to commit d0c971e2c7409d41c00c561f63a2ecdd98284f49 -
6fa1422
Updated PHPStan to commit 111799b398b1d00e8948cb841f73a393f995912b -
b1e22e8
Updated PHPStan to commit 26bf11c71e872b87001934275ab6975ecdd24099 -
7fa3245
Update Doctrine ORM baseline - 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)