1.11.2
版本发布时间: 2024-05-24 21:23:56
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
Improvements 🔧
- Stricter
@phpstan-ignore
identifiers parser (#3079, #3090, #3091), thanks @janedbal!- The parser now rejects some syntax that was possible but undocumented in 1.11.0 and 1.11.1
- The parser now allows to attach comment to each single identifier in a list:
@phpstan-ignore identifier (comment), identifier2 (comment2)
- Resolving type of closure - get
$passedToType
frominFunctionCallsStack
(https://github.com/phpstan/phpstan-src/commit/ca41b7d8c2d54407156d07dab5375a3a5ebbeb29, https://github.com/phpstan/phpstan-src/commit/da4fd7a4122615d9dbae55083bdfd290026fa08e), #5508, #10254, #10732 - Do not lose generic type when the closure has native return type (https://github.com/phpstan/phpstan-src/commit/7e9cd45701562fb02f1aa9cab1f89b58a58f6526), #9086
Function signature fixes 🤖
- More concrete return types for some database functions (#3078), thanks @devnix!
Internals 🔍
- Fix Composer by referencing deleted tag of
nette/di
(https://github.com/phpstan/phpstan-src/commit/2ab647e12fe46d970fa630b78f9ca962354b3d16) - Specify
array_filter
callbacks (https://github.com/phpstan/phpstan-src/commit/754b7b8e170cd36ed7bc8633b90651eff16cc893) - Add
@api
annotation toAcceptsResult::__construct
(#3092), thanks @canvural!
1、 phpstan.phar 21.79MB
2、 phpstan.phar.asc 833B