Releases: dereuromark/cakephp-ide-helper
1.18.5
Fixes
Fixed code completion scripts to have valid method signature and body for IDE not to report it.
1.18.4
Improvements
Enhanced further signature autocompletes for event callbacks.
1.18.3
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!
Thx to @toggenation for his initiative and work on this one.
1.18.2
Fixes
Fixed dependency to be declared directly.
1.18.1
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
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
Improvements
- Completed
arrayAsGenerics
config for controller and model classes
0.14.11
Fixes
- Quick fixed an issue with directives
1.17.1
1.17.0
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.