Bump phpstan/phpstan from 1.4.6 to 1.5.0
Created by: dependabot[bot]
Bumps phpstan/phpstan from 1.4.6 to 1.5.0.
Release notes
Sourced from phpstan/phpstan's releases.
1.5.0
This release fixes 26 issues!
🎉 Improvements
🔧
- Dropped support for PHP 7.1, PHPStan 1.5.0 runs on PHP 7.2-8.1. Users on PHP 7.1 accounted only for 0.8 % of installatoins.
- Allow null as a return value when resolving return types (#1061), #5855, thanks
@matthiasnoback
!- Output elapsed time per file in debug mode (#1062), #5294, thanks
@janedbal
!- A bit more precise concatenation of unions of literal strings (#937), #6439, thanks
@staabm
!OptimizedDirectorySourceLocator::locateIdentifiersByType()
returns all located classes or functions (#1080), thanks@tomasfejfar
!- Backward compatibility promise: ReflectionProvider cannot be extended/implemented by 3rd party code (https://github.com/phpstan/phpstan-src/commit/e60d6d6e9637db8a00bfd11cf446fabb3d545aa2)
- implement
ArraySearchFunctionTypeSpecifyingExtension
(#1086), #6863, thanks@staabm
!- added
ArrayReplaceFunctionReturnTypeExtension
(#1087), #5327, thanks@staabm
!- Dynamic return type extension for
curl_getinfo
(#1072), thanks@PrinsFrank
!- Support intersection types in template bounds (#1101), #6649, thanks
@rvanvelzen
!- Support
value-of<BackedEnum>
(#1082), #6775, thanks@staabm
!Bleeding edge
🔪
- Report useless
array_filter()
calls (#1077), #6840, thanks@leongersen
!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
Bugfixes
🐛
- fix handling of
JSON_THROW_ON_ERROR
with optional bitwise flags (#1025), #6654, thanks@staabm
!- Keep non nullability if right expr is
NeverType
(#1063), #5351, thanks@rajyan
!- Support more dynamic
$flags
arg inpreg_split()
(#1081), thanks@staabm
!- Fix
array_keys
andarray_values
with accessory types (#1084), #6859, thanks@staabm
!- Fix memory error when trying to represent big literal string types (#1088), #6866, thanks
@mathroc
!- Add throw point for
UnhandledMatchError
(#1056), #6115, thanks@rajyan
!- Do not report unhandled match expression value if
@throws
tag is present withUnhandledMatchError
(#1103), thanks@rajyan
!- Retain accessory string types in generics (#1096), #6301, #3951, #6845, #5336, thanks
@rvanvelzen
!- Simplify
FloatType::accepts
handling ofCompoundType
s (#1097), #6872, thanks@herndlm
!- Early termination for NeverType match expression (#1078), #6257, #6251, thanks
@rajyan
!- ObjectType - different priority in iterable key and iterable value (https://github.com/phpstan/phpstan-src/commit/125619231fc24bf8bb99e9e1586a49d7199380b2), #6494
- Support
enum_exists
in ClassExistsFunctionTypeSpecifyingExtension (#1109), thanks@staabm
!- Fix/issue 6870 expr early termination for
BinaryOp
(#1105), #6870, #6890, thanks@rajyan
!Function signature fixes
🤖
... (truncated)
Commits
-
2be8dd6
PHPStan 1.5.0 -
6aa6b41
Update PMMP baseline -
0156796
Updated PHPStan to commit a355aaa147429b6ba07ab1c8ebc418b8b647127e -
176af8b
Updated PHPStan to commit 707f57a595ac791564e20c006abe44dfd34de35d -
a74dd8b
Updated PHPStan to commit ee4e92984536e72023fbc0a7e06fe82cef4cd0a2 -
79584b4
Updated PHPStan to commit 8e4ef885b22f1d252c35d01b3aa77ce34bac80bd -
a1028a7
Update Composer baseline -
b3424a7
Updated PHPStan to commit ddbae3e2d65d65067ae78288880c22baae5c8eb7 -
9f6cec4
Updated PHPStan to commit 9cde41375bc3dde9516ce3af2fed0143f3bfbf94 -
3a2aa04
Updated PHPStan to commit 796f712ac198654360c22b6f9608ad496231a6d3 - 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)