Skip to content

Commit

Permalink
Merge pull request #1631 from solomon-ochepa/patch-4
Browse files Browse the repository at this point in the history
Update resource.stub
  • Loading branch information
dcblogdev authored Oct 22, 2023
2 parents ef67a73 + 4646f9f commit dfdf7ac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Commands/stubs/resource.stub
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ class $CLASS$ extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @return array
*/
public function toArray($request)
public function toArray($request): array
{
return parent::toArray($request);
}
Expand Down

0 comments on commit dfdf7ac

Please sign in to comment.