cakephp-ide-helper

IDE Helper plugin for CakePHP

MIT License

Downloads
1.5M
Stars
183
Committers
25
cakephp-ide-helper - 2.5.3

Published by dereuromark 10 days ago

Fixes

  • Fixed up findOrCreate() annotation.
  • Reverted wrong annotation change.
cakephp-ide-helper - 2.5.2

Published by dereuromark 10 days ago

Fixes

  • Fixed up paginate() annotation
cakephp-ide-helper - 2.5.1

Published by dereuromark 10 days ago

Fixes

  • Reverted mixed[] back to array as it brings no real value. The feature flag will still be able to enable array<string, mixed>, though.
cakephp-ide-helper - 2.5.0

Published by dereuromark 10 days ago

Fixes

  • Allow more complex array parsing for Illuminator and Annotator.
  • Allow generating stricter "generics" param annotations using genericsInParam feature flag (NOT yet supported by most IDEs) - can be useful for PHPStan/Psalm.
  • Allow having specific entities in generated method param doc block annotations instead of EntityInterface using concreteEntitiesInParam feature flag (NOT recommended) - can be useful for PHPStan/Psalm.

Full Changelog: https://github.com/dereuromark/cakephp-ide-helper/compare/2.4.0...2.5.0

cakephp-ide-helper - 2.4.0

Published by dereuromark about 1 month ago

cakephp-ide-helper - 2.3.0 Latest Release

Published by dereuromark about 2 months ago

Improvements

  • Add _joinData property for HABTM.

Included commits: https://github.com/dereuromark/cakephp-ide-helper/compare/2.2.4...2.3.0

cakephp-ide-helper - 2.2.4

Published by dereuromark 4 months ago

Fixes

  • Dont use appNamespace for plugins.

Included commits: https://github.com/dereuromark/cakephp-ide-helper/compare/2.2.3...2.2.4

cakephp-ide-helper - 2.2.3

Published by dereuromark 7 months ago

Fixed

  • Removed lying through annotation for HABTM relations.

Full Changelog: https://github.com/dereuromark/cakephp-ide-helper/compare/2.2.2...2.2.3

cakephp-ide-helper - 1.20.0

Published by dereuromark 8 months ago

Improvements

Backported features from v5:

Full Changelog: https://github.com/dereuromark/cakephp-ide-helper/compare/1.19.0...1.20.0

cakephp-ide-helper - 2.2.2

Published by dereuromark 8 months ago

Improvements

Full Changelog: https://github.com/dereuromark/cakephp-ide-helper/compare/2.2.1...2.2.2

cakephp-ide-helper - 2.2.1

Published by dereuromark 8 months ago

Fixes

  • Support more complex array shape annotations as well as union types within them for @var
cakephp-ide-helper - 2.2.0

Published by dereuromark 10 months ago

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.

cakephp-ide-helper - 2.1.0

Published by dereuromark 11 months ago

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.

cakephp-ide-helper - 1.19.0

Published by dereuromark 11 months ago

Improvements

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

Now CakePHP 4.4+

cakephp-ide-helper - 2.0.2

Published by dereuromark 12 months ago

Fixes

  • Fixed new backed enum support
- * @property int $status
+ * @property \TestApp\Model\Enum\CarStatus $status

Full Changelog: https://github.com/dereuromark/cakephp-ide-helper/compare/2.0.1...2.0.2

cakephp-ide-helper - 1.18.10

Published by dereuromark 12 months ago

Fixes

Fixed RoutesAnnotator to skip adding $routes where not needed due to new routes definition.

cakephp-ide-helper - 2.0.1

Published by dereuromark about 1 year ago

Fixes

Added missing View::addHelper() support

cakephp-ide-helper - 2.0.0

Published by dereuromark about 1 year ago

CakePHP 5.0 compatible release

Fixes compared to RC:

  • Fix up docblock finding around Attribute usage.
  • Fixed up model method signatures for 5.x

Note: The docs contain migration notes when coming from 4.x

cakephp-ide-helper - 2.0.0-RC2

Published by dereuromark about 1 year ago

CakePHP 5 pre-release

Fixes:

  • Removed Shim as hidden dependency ("require" section)
cakephp-ide-helper - 2.0.0-RC

Published by dereuromark about 1 year ago

CakePHP 5 compatible pre-release

For CakePHP 5.0+ apps.

Package Rankings
Top 1.19% on Packagist.org
Badges
Extracted from project README
CI Coverage Status PHPStan Minimum PHP Version