1.12.4
版本发布时间: 2024-09-19 15:58:53
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
Improvements 🔧
- Special internal error message for Larastan & Laravel (https://github.com/phpstan/phpstan-src/commit/475a18ce8e0e14e340d7a0939906fffa6dd28e8d), #11641
- Do not truncate offset key in error tip message (#3437), thanks @ruudk!
- Errors with
argument.named
are ignorable now (https://github.com/phpstan/phpstan-src/commit/193b4f518d53eb3648b09ff131f83979067fec59) - Normalize path in TypeInferenceTestCase (#3449), thanks @staabm!
- Fix duplicate paths in
composerAutoloaderProjectPaths
on Windows (#3451), thanks @staabm! - Update nikic/php-parser to 4.19.2 (https://github.com/phpstan/phpstan-src/commit/05630e67fa3809191253e660765573263daab2b9)
- Allow toggling
treatPhpDocTypesAsCertain
tip (#3452), #11689, thanks @ruudk!
Bugfixes 🐛
- Fix conditional types in
array_map()
return value (#3425), #10715, #11056, #10685, thanks @rvanvelzen! - Fix false positive when extending SplObjectStorage on PHP < 8.4 by updating BetterReflection (https://github.com/Roave/BetterReflection/pull/1448, https://github.com/phpstan/phpstan-src/commit/fd25c2779ca7fd4decee7038282ab9743b16d167), #11665, thanks @VincentLanglet!
- Prevent warning in
range()
on PHP 7.x (#3424), thanks @staabm! - Process expression assignments other than Variable in by-ref parameters (https://github.com/phpstan/phpstan-src/commit/d3a2a92fcd612bf42bbfd19cd3a5625481ff7522), #11667, #8781
- Allow nonexistent other-than-Variable expressions in by-ref parameters (https://github.com/phpstan/phpstan-src/commit/00d2caf39514380610899b0a305413f60c1c5830), #11617, #5077, #9361, #7251, #2313, #11655, #2634
- Fix false positive when type casting in If_ statement (#3431), #11674, thanks @staabm!
- Simplify abs return type (#3433), #9224, thanks @rvanvelzen!
- Fix late static binding calls (#3361), #10469, thanks @mvorisek!
- Fix string types sorting (#3441), thanks @VincentLanglet!
- RegexArrayShapeMatcher - Fix matching literal dot character (#3444), #11699, thanks @staabm!
- Fix infer new templated type from initial assign into static property (#3364), #5551, thanks @mvorisek!
-
range()
with float step should return an array of floats (#3447), #11692, thanks @staabm! - Narrow string on
*strlen()
with positive-int (#3407), #11558, thanks @staabm! - Fix late static binding calls for first class callable (#3435), thanks @mvorisek!
- E_ALL value is different on PHP 8.4 (https://github.com/phpstan/phpstan-src/commit/cb8f9103f4191f176d1b52cc45f661c3326f194f)
Function signature fixes 🤖
- Fix SplObjectStorage generic stub for PHP 8.4 (https://github.com/phpstan/phpstan-src/commit/9d9fb560907fcd4f6dd16789af4278ac7f683736)
Internals 🔍
- Extract getMessageFromInternalError (https://github.com/phpstan/phpstan-src/commit/d047c7f8ef8da296d0498696635735eed1762a4e)
- Optimize NodeScopeResolverTest when running with
paratest
(#3440), thanks @schlndh! - Expose
Output::isDecorated
andOutput::isVeryVerbose
(#3436), thanks @ruudk! - Simplify SubstrDynamicReturnTypeExtension (#3439), thanks @VincentLanglet!
- CollectedDataNode is VirtualNode (https://github.com/phpstan/phpstan-src/commit/2d613997f5a9298b2446d1a0b2f01a565ed8a457)
1、 phpstan.phar 22.42MB
2、 phpstan.phar.asc 833B