github dereuromark/cakephp-ide-helper 2.21.0

5 hours ago

Improvements

  • Added configurable property type annotations through IdeHelper.propertyTypeMap. This allows apps to add more specific PHPDoc types for declared properties such as $helpers, $components, $actsAs or $paginate without narrowing the native property type and breaking BC. Generated annotations use regular multiline property PHPDoc blocks and preserve existing indentation, including tabs.
  • ResultSetInterface return type detection now respects disabled object generics and parameter generics.

Recommended config for CakePHP 5.4+:

'IdeHelper' => [
    'propertyTypeMap' => [
        'actsAs' => 'array<string, mixed>',
        'helpers' => 'array<int|string, string|array<string, mixed>>',
        'components' => 'array<int|string, string|array<string, mixed>>',
        'paginate' => 'array<string, mixed>',
    ],
],

Full Changelog: 2.20.0...2.21.0

Don't miss a new cakephp-ide-helper release

NewReleases is sending notifications on new releases.