Bump phpstan/phpstan from 1.9.17 to 1.10.3
Bumps phpstan/phpstan from 1.9.17 to 1.10.3.
Release notes
Sourced from phpstan/phpstan's releases.
1.10.3
Improvements
🔧
- Add support for
@not-deprecated
annotation (#2255), https://github.com/phpstan/phpstan/discussions/7422, thanks@stof
!Bugfixes
🐛
- Fix arithmetic operations with BenevolentUnionType (https://github.com/phpstan/phpstan-src/commit/f882eff78af3647b28a4663f467ae78346e89db3), #8938
- Fix native return type of
array_chunk()
(https://github.com/phpstan/phpstan-src/commit/e4a6d2026ef1218d2629e55991972058b80fef73), #8956- Support for property fetch in initializers (https://github.com/phpstan/phpstan-src/commit/53c643de1366f185c9f21ff12908a7b1458b9ed0), #8957
- ObjectType - fix enum property with subtracted type (https://github.com/phpstan/phpstan-src/commit/eb00fd21ccc834c13624c32b6db0c1700ab32a8a), #8828, #8486
1.10.2
Improvements
🔧
- Allow generating baseline in .php format (https://github.com/phpstan/phpstan-src/commit/8260032bc6b3641ec80a4b11526869b53d250ac6), #8870
- See documentation: https://phpstan.org/user-guide/baseline#php-baseline-format-instead-of-neon
Function signature fixes
🤖
- Instances of
object
returned bydb2_*()
functions are always instances ofstdClass
(#2249), thanks@phansys
!1.10.1
Bugfixes
🐛
- Fix match expression and
treatPhpDocTypesAsCertain: false
(#2248), #8932, thanks@VincentLanglet
!- Fix calling dynamic return type extensions on nullable types (https://github.com/phpstan/phpstan-src/commit/7331bc51411943dba14880434df6d7c85a744dcf)
- Fix edge case with
in_array
and enums (https://github.com/phpstan/phpstan-src/commit/7d6f0f6a4c8eac67cfb2d810681043f9863f04a7)1.10.0
Read the article about this release: PHPStan 1.10 Comes With a Lie Detector
Major new features
🚀
- "Always true" conditions in the last
elseif
branch and last match expression arm are not reported by default (#2105), #8042, #8485, #7721, #4242, #8240, thanks@staabm
!
- Set
reportAlwaysTrueInLastCondition
totrue
to have them reported again- Note: "Always true" conditions in PHPStan 1.x are reported with Bleeding Edge enabled, or with phpstan-strict-rules installed, or with relevant options enabled separately. In PHPStan 2.0 they're going to be always reported, except for the last
elseif
branch and last match expression arm.- Deprecate various
instanceof *Type
in favour of new methods onType
interface, (https://github.com/phpstan/phpstan-src/commit/436e6d3015cbeba4645d38bc7a6a865b9c6d7c74), learn more: Why Is instanceof *Type Wrong and Getting Deprecated?
- Deprecations in your custom rules and extensions will be reported in Bleeding Edge, or with
phpstan-deprecation-rules
installed- Explain why type isn't accepted by another type in less intuitive scenarios, #3281, #6787
- Some examples: https://phpstan.org/r/61cfbb65-1a04-471a-a5c5-d61f0540ae1d, https://phpstan.org/r/839f1fd2-d66a-4356-af21-3fe171d83fd1, https://phpstan.org/r/2bea7ece-6b26-4dc9-a1cf-d2f0e7fbb9d6, https://phpstan.org/r/fed1c275-46d0-434f-b9c4-3212f4df6d1c, https://phpstan.org/r/24a23b74-af27-4443-986c-04af61427d50
Bleeding edge
🔪
... (truncated)
Commits
-
5419375
PHPStan 1.10.3 -
eb00fd2
Updated PHPStan to commit eb00fd21ccc834c13624c32b6db0c1700ab32a8a -
53c643d
Updated PHPStan to commit 53c643de1366f185c9f21ff12908a7b1458b9ed0 -
e4a6d20
Updated PHPStan to commit e4a6d2026ef1218d2629e55991972058b80fef73 -
7cb4901
Updated PHPStan to commit 7cb4901ce82cf37d5a2bdbde5e4cb1672b9b0612 -
a89a5cb
Update Larastan -
cd1be1b
Update Shipmonk baseline -
00b14ea
Update Composer baseline -
8184986
Update PHPUnit baseline -
ef013e5
Update Rector - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts