You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See these PRs the HasCollection trait and $collectionClass property was added so we can properly type hint the model collection for static-analysis (e.g. PHPStan).
class Post extends Model
{
/** @use HasCollection<PostCollection<array-key, static>> */use HasCollection;
protectedstaticstring$collectionClass = PostCollection::class;
}
Plugin version
8.2.2.241
Operating system
MacOS
Steps to reproduce
Use the code above and the plugin when running Generate Helper Code does not pickup the custom collections.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
Bug description
See these PRs the
HasCollection
trait and$collectionClass
property was added so we can properly type hint the model collection for static-analysis (e.g. PHPStan).laravel/framework#52171
laravel/framework#52186
So now we have this on a Model:
Plugin version
8.2.2.241
Operating system
MacOS
Steps to reproduce
Use the code above and the plugin when running
Generate Helper Code
does not pickup the custom collections.Relevant log output
No response
The text was updated successfully, but these errors were encountered: