Skip to content

Releases: dereuromark/cakephp-ide-helper

2.4.0

24 Sep 18:23
Compare
Choose a tag to compare

Improvements

Full Changelog: 2.3.0...2.4.0

2.3.0

08 Sep 00:42
Compare
Choose a tag to compare

Improvements

  • Add _joinData property for HABTM.

Included commits: 2.2.4...2.3.0

2.2.4

27 Jun 11:37
efbea19
Compare
Choose a tag to compare

Fixes

  • Dont use appNamespace for plugins.

Included commits: 2.2.3...2.2.4

2.2.3

20 Mar 11:51
141f290
Compare
Choose a tag to compare

Fixed

  • Removed lying through annotation for HABTM relations.

Full Changelog: 2.2.2...2.2.3

2.2.2

05 Mar 13:06
37887de
Compare
Choose a tag to compare

Improvements

Full Changelog: 2.2.1...2.2.2

1.20.0

05 Mar 14:27
aaa362a
Compare
Choose a tag to compare

Improvements

Backported features from v5:

  • Return types for callbacks as docblock vs type
  • Support for more complex array annotations (#344) and for multiline annotation (#345) to Cake4. by @Harfusha in #348

Full Changelog: 1.19.0...1.20.0

2.2.1

15 Feb 14:25
Compare
Choose a tag to compare

Fixes

  • Support more complex array shape annotations as well as union types within them for @var

2.2.0

12 Jan 08:37
83a2cd1
Compare
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
Compare
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
Compare
Choose a tag to compare

Improvements

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

Now CakePHP 4.4+