Closed TheoDVC closed 8 months ago
I encountered a problem when using PHPStan / Larastan, and was able to correct it by adding the following to the MediableCollection.
I'm leaving this here for people encountering this error and for reference either in a pull request or for later.
/** * Collection of Mediable Models. * * @template TKey of array-key * @template TModel of Model * @extends Collection<TKey, TModel> */ class MediableCollection extends Collection {
Indeed. You are welcome to submit a pull request to add that to the codebase for others to benefit from.
This is implemented in the branch for the upcoming major version release.
Version 6.0.0 has been released.
I encountered a problem when using PHPStan / Larastan, and was able to correct it by adding the following to the MediableCollection.
I'm leaving this here for people encountering this error and for reference either in a pull request or for later.