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,$actsAsor$paginatewithout 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