Skip to content

Commit

Permalink
[10.x]: Fix docs ResourceCollection and JsonCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenini1805 committed Jan 16, 2024
1 parent 8d4eaeb commit f381168
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Resources/Json/JsonResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function resolve($request = null)
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
* @return array<int|string, mixed>
*/
public function toArray(Request $request)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Resources/Json/ResourceCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function count(): int
* Transform the resource into a JSON array.
*
* @param \Illuminate\Http\Request $request
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
* @return array<int|string, mixed>
*/
public function toArray(Request $request)
{
Expand Down

0 comments on commit f381168

Please sign in to comment.