Skip to content

Releases: dereuromark/cakephp-ide-helper

1.18.5

11 Nov 10:44
Compare
Choose a tag to compare

Fixes

Fixed code completion scripts to have valid method signature and body for IDE not to report it.

1.18.4

07 Oct 01:38
af79035
Compare
Choose a tag to compare

Improvements

Enhanced further signature autocompletes for event callbacks.

1.18.3

21 Sep 10:31
a868b1c
Compare
Choose a tag to compare

Improvements

Added missing autocomplete for the "event" callback methods for

  • Controllers, components
  • Models, behaviors
  • Helpers

It includes full signature.

Just run bin/cake code_completion generate and enjoy!

E.g.:
Untitled

Thx to @toggenation for his initiative and work on this one.

1.18.2

31 Aug 00:49
Compare
Choose a tag to compare

Fixes

Fixed dependency to be declared directly.

1.18.1

04 Aug 21:28
Compare
Choose a tag to compare

Fixes

Fixed template docblocks to be recognized as main docblocks if clearly not license ones.

Improvements

Allow entity virtual fields to be annotated with @see tag to directly link property and method in IDE.

1.18.0

28 Jul 16:12
Compare
Choose a tag to compare

Improvements

PHP docblock parsing is now using PHPStan's functionality.
This allows for more complex types, e.g. generics (array<int, int>), to be recognized and handled.

Note: The old alternative of @property \Cake\Controller\Component\SecurityComponent Security is now not working anymore, always needs a $ in front of property name now to be found as existing annotation (@property \Cake\Controller\Component\SecurityComponent $Security).

Also, added config objectAsGenerics (default false) allows to control the object collection annotations.
It seems IDEs (e.g. PHPStorm) are not able to handle those yet, specifically inside templates. See this for details.
It completes the existing arrayAsGenerics config which now only handles simple arrays.

It is recommended to use config 'templateCollectionObject' => 'iterable' here for templates if you are not passing your collections always as arrays.

Example config:

    'arrayAsGenerics' => true,
    'objectAsGenerics' => true,
    'templateCollectionObject' => 'iterable',

1.17.2

21 Jul 10:22
d492de5
Compare
Choose a tag to compare

Improvements

  • Completed arrayAsGenerics config for controller and model classes

0.14.11

25 May 23:04
551004e
Compare
Choose a tag to compare

Fixes

  • Quick fixed an issue with directives

1.17.1

05 May 14:54
f02bdb3
Compare
Choose a tag to compare

Fixes

  • Fix for templates with declare() in PHP open tag
  • Fix generator's TableFinderTask to not fail on union types, thx to @passchn
  • Skip routes annotation if present already anywhere in file

1.17.0

25 Nov 17:04
b07f881
Compare
Choose a tag to compare

Improvements

FQCN usage in associations

Support FQCN in belongsToMany through option, thx to @andrii-pukhalevych

Inline annotations

Annotation support for inline topics have been added:

Form
/** @uses \App\Form\ReleaseForm::_execute() */
$result = $releaseForm->execute($data);
Mailer
/** @uses \App\Mailer\NotificationMailer::notify() */
$notificationMailer->send('notify', [$username]);
Custom

You can use the new inline annotator functionality to add custom ones on top.