github dereuromark/cakephp-ide-helper 2.19.2

6 hours ago

Fixes

  • Corrected ResultSetInterface arity in generated table @method annotations. It now emits ResultSetInterface<int, TEntity> (two type params) for saveMany/saveManyOrFail/deleteMany/deleteManyOrFail returns, fixing missingType.generics under strict PHPStan. Applies in all modes, including the default. (#455)

Improvements

  • Basic generics mode (IdeHelper.genericsInParam set to true) no longer leaves params as a bare array. The get() $finder, findOrCreate() $search, and loadInto() $contain params now carry a generic type, so PHPStorm gets generic info without the detailed shapes it cannot handle. (#454)
  • Basic generics mode is now strict-PHPStan clean: findOrCreate() $search emits SelectQuery<TEntity>, associative option/condition arrays use array<string, mixed>, and $contain keeps the loose array<mixed> for the list form. The false and 'detailed' modes are unchanged apart from the arity fix above. (#455)

Full Changelog: 2.19.1...2.19.2

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

NewReleases is sending notifications on new releases.