TiagoSilvaPereira / vemto-issues

Repository to track Vemto Issues
30 stars 0 forks source link

Declaration of toArray must be compatible #415

Closed murtada-dev closed 1 year ago

murtada-dev commented 1 year ago

image image image image image

PostCollection image

PostResource image

PostController image

request response { "message": "Declaration of App\\Http\\Resources\\PostCollection::toArray(Illuminate\\Http\\Request $request): array must be compatible with Illuminate\\Http\\Resources\\Json\\ResourceCollection::toArray($request)", "exception": "Symfony\\Component\\ErrorHandler\\Error\\FatalError", "file": "E:\\laravel\\v9\\app\\Http\\Resources\\PostCollection.php", "line": 13, "trace": [] }

any soon fix ? thank you.

TiagoSilvaPereira commented 1 year ago

Hi @murtada-dev I'll check this ASAP... thanks for reporting

TiagoSilvaPereira commented 1 year ago

Fixed on 1.3.2