Published by dereuromark 10 days ago
Published by dereuromark 10 days ago
Published by dereuromark 10 days ago
array<string, mixed>
, though.Published by dereuromark 10 days ago
genericsInParam
feature flag (NOT yet supported by most IDEs) - can be useful for PHPStan/Psalm.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
Published by dereuromark about 1 month ago
Full Changelog: https://github.com/dereuromark/cakephp-ide-helper/compare/2.3.0...2.4.0
Included commits: https://github.com/dereuromark/cakephp-ide-helper/compare/2.2.4...2.3.0
Published by dereuromark 4 months ago
appNamespace
for plugins.Included commits: https://github.com/dereuromark/cakephp-ide-helper/compare/2.2.3...2.2.4
Published by dereuromark 7 months ago
Full Changelog: https://github.com/dereuromark/cakephp-ide-helper/compare/2.2.2...2.2.3
Published by dereuromark 8 months ago
Backported features from v5:
Full Changelog: https://github.com/dereuromark/cakephp-ide-helper/compare/1.19.0...1.20.0
Published by dereuromark 8 months ago
Full Changelog: https://github.com/dereuromark/cakephp-ide-helper/compare/2.2.1...2.2.2
Published by dereuromark 8 months ago
@var
Published by dereuromark 10 months ago
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.
Published by dereuromark 11 months ago
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.
Published by dereuromark 11 months ago
Now CakePHP 4.4+
Published by dereuromark 12 months ago
- * @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
Published by dereuromark 12 months ago
Fixed RoutesAnnotator to skip adding $routes
where not needed due to new routes definition.
Published by dereuromark about 1 year ago
Added missing View::addHelper()
support
Published by dereuromark about 1 year ago
Fixes compared to RC:
Note: The docs contain migration notes when coming from 4.x
Published by dereuromark about 1 year ago
Fixes:
Published by dereuromark about 1 year ago
For CakePHP 5.0+ apps.