Releases: dereuromark/cakephp-ide-helper
2.8.0
Improvements
Table::getBehavior()
Added support for Table::getBehavior() autocomplete and behavior object discover.
This becomes now more important as behavior methods will need to be called directly on the behavior in the future.
The new @extends annotations also make it possible now for PHPStan to introspect your getBehavior() calls and see if those behaviors - and their methods - actually exist or throw an error otherwise.
It is enabled by default for CakePHP 5.2.2+. You can also use the configuration to adjust this and also fade out @mixin ones if you don't need them anymore. IdeHelper.tableBehaviors can be set to true/false/extends/mixin or null to autodetect.
In this context also hasBehavior() support has been added.
Migrations Base classes
The new (Phinx removed) Migrations Base classes are now supported for autocomplete.
2.7.0
Improvements
- Added PHPUnit 12 support
- Dropped
phpstan/phpdoc-parserv1 support
2.6.4
Improvements
- Compatibility with PHPStan parser v2
2.6.3
Improvements
- Improve MailerClassAnnotatorTask: Chainable usage now preferred:
will be annotated as
$this->getMailer('User')->send('forgotPassword', [$user]);
To be able to follow it through a click in the IDE and also for the method to be checkable for usage (IDE => jump to the usage)./** @uses \App\Mailer\UserMailer::forgotPassword() */ $this->getMailer('User')->send('forgotPassword', [$user]);
2.6.2
Improvements
- Added
'ignoreDatabaseTables'config for DatabaseTableTask
2.6.1
Fixes
- Fix up FQCN for property annotations in entity.
- Fix up plugin wildcard.
2.6.0
Improvements
- Allow wildcard for partial match on plugin option:
MyNamespace/*would run over all such matching app plugins - Allow
-p allto run over all app plugins
1.21.0
Fixes
- Fix disabling of class tasks
Improvements
- Allow wildcard for partial match on plugin option:
MyNamespace/*would run over all such matching app plugins - Allow
-p allto run over all app plugins
2.5.4
Fixes
- Fix disabling of class tasks
2.5.3
Fixes
- Fixed up findOrCreate() annotation.
- Reverted wrong annotation change.