Closed rudiedirkx closed 3 days ago
Pretty self-explanatory. Only \Generator<int, \stdClass> is dubious, because that's not a Laravel generic. Both Phpstan and Psalm support it though.
\Generator<int, \stdClass>
With this change, $query->get() wont return a list of mixed, but a list of stdClass, which is more accurate.
$query->get()
mixed
stdClass
Pretty self-explanatory. Only
\Generator<int, \stdClass>
is dubious, because that's not a Laravel generic. Both Phpstan and Psalm support it though.With this change,
$query->get()
wont return a list ofmixed
, but a list ofstdClass
, which is more accurate.