Skip to content

Releases: dereuromark/cakephp-ide-helper

2.2.0

12 Jan 08:37
83a2cd1

Choose a tag to compare

Improvements

codeCompletionReturnType config added:
Allow configuration of return type vs docblock for controller/component events.
Use true to not allow void here for any such event, and always hardcode Response|null as return type (recommended).
Use false to only document types and here allow for void in general.

2.1.0

15 Dec 01:08

Choose a tag to compare

Improvements

Added generics for table associations as opt-in.
You can enable this by setting 'IdeHelper.assocsAsGenerics' config to true.

e.g. WheelsTable:

- * @property \TestApp\Model\Table\CarsTable&\Cake\ORM\Association\BelongsTo $Cars
+ * @property \Cake\ORM\Association\BelongsTo<\TestApp\Model\Table\CarsTable> $Cars

This is designed to work with CakePHP 5.0.3+ and allows PHPStan to better see those associations and their actual type.
The main idea here is that less inline annotations are needed for PHPStan/Psalm to detect those.

Inside Wheels table accessing Owner table methods through Cars:

$result = $this->Cars->Owner->someMethod();

Warning: This does not yet play well with most IDEs. The tradeoff seems to be that you lose IDE compatibility/autocomplete on the table methods here. So use with caution.

1.19.0

07 Dec 22:15
f4c3c8e

Choose a tag to compare

Improvements

  • Backported addHelper() autocomplete for View from 5.x

Now CakePHP 4.4+

2.0.2

03 Nov 12:28

Choose a tag to compare

Fixes

  • Fixed new backed enum support
- * @property int $status
+ * @property \TestApp\Model\Enum\CarStatus $status

Full Changelog: 2.0.1...2.0.2

1.18.10

03 Nov 12:21

Choose a tag to compare

Fixes

Fixed RoutesAnnotator to skip adding $routes where not needed due to new routes definition.

2.0.1

30 Sep 13:36
98b4222

Choose a tag to compare

Fixes

Added missing View::addHelper() support

2.0.0

28 Sep 16:35
0ee557d

Choose a tag to compare

CakePHP 5.0 compatible release

Fixes compared to RC:

  • Fix up docblock finding around Attribute usage.
  • Fixed up model method signatures for 5.x

Note: The docs contain migration notes when coming from 4.x

2.0.0-RC2

12 Sep 00:48
29a0ae3

Choose a tag to compare

CakePHP 5 pre-release

Fixes:

  • Removed Shim as hidden dependency ("require" section)

2.0.0-RC

10 Sep 09:32

Choose a tag to compare

CakePHP 5 compatible pre-release

For CakePHP 5.0+ apps.

1.18.9

05 Jul 15:28
3c9c9b5

Choose a tag to compare

Fixes

  • Remove return type for Controller events for now