Closed murtada-dev closed 1 year ago
PostCollection
PostResource
PostController
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": [] }
{ "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.
Hi @murtada-dev I'll check this ASAP... thanks for reporting
Fixed on 1.3.2
PostCollection
PostResource
PostController
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.