Update PHPStan packages
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
1.11.3 -> 1.11.5
|
phpstan/phpstan-symfony | require-dev | patch |
1.4.3 -> 1.4.4
|
Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.11.5
🔪
Bleeding edge - Check array functions which require stringish values (#3132), #11141, #5848, #3694, #11111, thanks @schlndh!
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
🔧
Improvements - When internal errors occur, do not show other reported errors (https://github.com/phpstan/phpstan-src/commit/aa921137be5b510408bc8df9b8b6fe632ed09db5)
- It's important to first solve internal errors before seeing other reported errors
- Inspired by https://github.com/phpstan/phpstan/discussions/11107 (ReviewDog was eating up important errors)
- Show internal errors nicely in PHPStan Pro
🐛
Bugfixes - Fix bug in
get_debug_type()
DynamicFunctionReturnTypeExtension (#3128), thanks @patrickkusebauch! - Include path when counting errors ignored by identifier (#3154), #11177, thanks @pilif!
- Implement bit shift operation on integers and unions (#3145), thanks @thg2k!
- Fix division type result with even integer range (#3152), thanks @thg2k!
- Solve identical comparison bug in call-site variance (#3153), #11161, #10697, thanks @VincentLanglet!
🤖
Function signature fixes -
gnupg_init()
options
parameter is optional (#3129), thanks @yphoenix! - Update outdated
RedisCluster::__construct
signature (#3130), #11158, thanks @wolfgangzwiauer! - Improve image related functions signature (#3127), thanks @thg2k!
- Update/fix ext-amqp signatures (#3139), thanks @ben-challis!
- fix
AMQPQueue::unbind()
routingKey type (#3143), thanks @ben-challis! - Add parameter definitions to
AMQPQueue::consume()
callback (#3144), #9445, thanks @ben-challis! - Add int ranges to AMQP typings (#3146), thanks @ben-challis!
- Various fixes to the return signature of
IntlDateFormatter
methods (#3149), thanks @chosten! - Fix
Exception::getTrace()
return type (https://github.com/phpstan/phpstan-src/commit/492cd89932d873147cdf7acf49c88d432cbce69f) - fix posix_getpwuid (#3157), thanks @pistej!
🔍
Internals - Regression test (#3136), thanks @staabm!
- Relax test version restriction (#3140), thanks @thg2k!
- Fix
PrepareCommand::fixComposerJson()
(https://github.com/phpstan/phpstan-src/commit/4537ef1445b910930afa32d7fd8f22b044fdc726) - Internal errors as structured objects (https://github.com/phpstan/phpstan-src/commit/7cd03f02a5c32ca4e51006dc21d6184f73835a14)
- WorkerCommand - do not return exit code 1 in case of internal errors, they are handled anyway (https://github.com/phpstan/phpstan-src/commit/f76d836d13fb94e9887260ae18229ad2ca2ce2ce)
- NodeScopeResolverTest - remove requires (https://github.com/phpstan/phpstan-src/commit/f6b989881e66445197f6526bfcde868a60472098)
- Fix discrepancy between
lint >=
andPHP_VERSION_ID
in NodeScopeResolverTest (https://github.com/phpstan/phpstan-src/commit/b530b0d53d3fc990dcb0225e0d997af06ee15180) -
TypeInferenceTestCase::gatherAssertTypesFromDirectory()
(https://github.com/phpstan/phpstan-src/commit/595de78d35124d00eed90c09f5fd73cb40351e02) - Take advantage of gatherAssertTypesFromDirectory in NodeScopeResolverTest (#3159)
- Turn TraitsCachingIssueIntegrationTest into a e2e test (#3151), thanks @staabm!
v1.11.4
🔧
Improvements - Detect
--generate-baseline
combined with--pro
(https://github.com/phpstan/phpstan-src/commit/dd028cb4ccc44c6aa12b51f443e8761d5d4efc1d), #11093 - Add error identifier to RawErrorFormatter (#3112), #11125, thanks @zonuexe!
- Pass current rule level to PHPStan Pro (https://github.com/phpstan/phpstan-src/commit/7af14fbfc027b15e3342ac95be783bd3fa1df413)
- Read and enforce PHPStan version constraints from
phpstan/extension-installer
v1.4 (https://github.com/phpstan/phpstan-src/commit/1d005ef1e72f77afada37bad491f2b6602f4cc92)
🐛
Bugfixes - Consider
numeric-string
types after string concat (#3117), thanks @staabm! - Fix type loss with recursive
count()
(#2812), thanks @staabm! -
array_slice()
returnsnon-empty-array
for existing offsets and positive limit (#3124), #10721, thanks @staabm! - Consider a
ClosureType()
as maybe impure by default when no$impurePoints
array provided (#3125), #11135, thanks @jf-m!
🤖
Function signature fixes - Make the return type of
tempnam()
andtmpfile()
to benevolent union (#3111), thanks @zonuexe! - Fix
gnupg_init
function (#3118), thanks @pistej!
🔍
Internals - Update
react/promise
(https://github.com/phpstan/phpstan-src/commit/da754e2294a619bacc95cd42426e94c17a57365b)
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.