1.11.5
版本发布时间: 2024-06-17 23:13:31
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
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!
1、 phpstan.phar 21.88MB
2、 phpstan.phar.asc 833B