PhpStan Error on Collection #26
-
I have started using laravel data, but running phpstan I have an error about the type not being compatible
Of course this can be skipped on the configuration, but want to be sure if it is something know since I haven't see any discussion about this. |
Beta Was this translation helpful? Give feedback.
Answered by
rubenvanassche
Nov 16, 2021
Replies: 1 comment 1 reply
-
Hi @adalessa, Could you try |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
adalessa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @adalessa,
Could you try
Spatie\LaravelData\DataCollection<App\Services\Image>
as an annotation? Version 1.1.0 we released yesterday has support for this and PHPStan should understand it.