Skip to content

v1.11.0

Choose a tag to compare

@edzus edzus released this 20 Nov 23:10
· 55 commits to main since this release

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 $this in arrow function scope, so that it refers to the class of parent scope if it exists.
  • Fixed method return type analysis in traits.
  • Internal: resolveType method on PhpClass will always return AutoDoc\DataTypes\ObjectType.

Known problems

  • Changes inflicted on referenced variables from functions such as array_pop are currently not tracked by autodoc.

Full Changelog: v1.10.0...v1.11.0