Skip to content

Releases: dereuromark/cakephp-ide-helper

2.11.0

17 Jul 13:30
3883f47

Choose a tag to compare

Improvements

CI run

IdeHelper can now run in CI pipelines using --ci flag, e.g. add this after phpunit, phpstan, and cs:

    - vendor/bin/phpunit
    - vendor/bin/phpstan
    - vendor/bin/phpcs
    - bin/cake annotate all -d --ci

This requires the test DB connection to be up and migrations run (up to date tables).

This helps to make sure PRs are fully up to date on the annotations, as those are often needed for PHPStan to fully understand the code and be able to give proper feedback.

For larger projects you might need to raise also memory limit:

    - php -d memory_limit=1G bin/cake.php annotate all -d --ci

Note how it requires the -d/--dry-run flag here to not modify any code, only report it.

Full Changelog: 2.10.2...2.11.0

2.10.2

30 Jun 10:34
cece0b9

Choose a tag to compare

Improvements

  • Allow using @link instead of @uses for tests to avoid PHPUnit clash (which wants to make it attributes).

Note: There is no auto-migration. Find and replace all occurances of @uses \... in your tests folder with the link replacement and only then switch on the feature toggle IdeHelper.preferLinkOverUsesInTests for it.

2.10.1

25 Jun 09:06
0d7c4fa

Choose a tag to compare

Fixes

  • Allow class doc block finding also with attributes attached to them

2.10.0

25 May 12:47
16f6adf

Choose a tag to compare

Improvements

  • Add --file support for tooling based run

This enables watchers to be able to run for specific files created/modified.

node vendor/dereuromark/cakephp-ide-helper/annotate-watcher.cjs

Now when you bake, or modify your code, it will automatically run it in the background over the touched files.

2.9.1

12 May 00:09
0f04b86

Choose a tag to compare

Fixes

  • Fixed up callbacks to non-deprecated signature

2.9.0

28 Apr 01:37
3bef2c0

Choose a tag to compare

Improvements

request attribute auto complete

Added request attribute auto complete - #383

  • Quickly auto complete the available keys
  • See the returning type and quickly access it in the IDE for objects

Check out the PR and video demo for how it works.

Full Changelog: 2.8.4...2.9.0

2.8.4

25 Apr 00:47
9cebdc2

Choose a tag to compare

Improvements

  • Improved variable parsing in templates

It now also finds variables inside double quoted strings like

echo "<strong>'{$url}'</strong>: $title ...";

2.8.3

22 Apr 13:25
0ab8b27

Choose a tag to compare

Fixes

  • Fixed up @extends annotation for comments or ! overwrite protector.

2.8.2

18 Apr 13:32
494d869

Choose a tag to compare

Fixes

  • Fixed new @extends to respect actual parent class

Note: The auto enable for it has been moved to CakePHP 5.2.3+. if you want to use it beforehand, set the config to true or 'extends' here.

2.8.1

18 Apr 11:54
c2a732f

Choose a tag to compare

Fixes

  • Fixed up also other migration meta to new Base classes.