github dereuromark/cakephp-ide-helper 2.8.0

latest releases: 2.11.2, 2.11.1, 2.11.0...
4 months ago

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.

Don't miss a new cakephp-ide-helper release

NewReleases is sending notifications on new releases.