Skip to content

v1.12.0

Choose a tag to compare

@edzus edzus released this 30 Nov 23:22
· 50 commits to main since this release

New

  • New configuration option to resolve partial array shapes instead of collapsing them to a key-value type pair
  • New TypeScript export option from that allows exporting PHPStan type aliases
  • New TypeScript export options save_types_in_single_file and as that allow exporting all types in a specified TS file, leaving only one line of type import after the @autodoc tag comment.
  • TypeScript export modes that allow using different sets of configuration for different @autodoc tags

For examples and detailed descriptions take a look at the TypeScript export documentation.

Fixes

  • Improved type description reading, fixed some cases where description was ignored
  • Fixed PHP method name matching to be case-insensitive
  • Fixed variable assignment tracking, preventing infinite loop in some cases, and supporting variable declaration on the same line the variable is used

Full Changelog: v1.11.0...v1.12.0