v1.11.0
New
- In-depth analysis of built-in PHP array functions to analyze their return types based on passed arguments:
array_map,array_values,array_keys,array_flip,array_filter,array_merge,compact,array_search,array_first,array_last,array_find,array_pop,array_shift,array_key_first,array_key_last,array_find_key,key,end,current,next,prev,reset.
Fixes
- Fixed
$thisin arrow function scope, so that it refers to the class of parent scope if it exists. - Fixed method return type analysis in traits.
- Internal:
resolveTypemethod onPhpClasswill always returnAutoDoc\DataTypes\ObjectType.
Known problems
- Changes inflicted on referenced variables from functions such as
array_popare currently not tracked by autodoc.
Full Changelog: v1.10.0...v1.11.0