From f38116825c20a70801c91d967a71a415038359a1 Mon Sep 17 00:00:00 2001 From: NguyenHuuSu Date: Tue, 16 Jan 2024 16:41:35 +0700 Subject: [PATCH] [10.x]: Fix docs ResourceCollection and JsonCollection --- src/Illuminate/Http/Resources/Json/JsonResource.php | 2 +- src/Illuminate/Http/Resources/Json/ResourceCollection.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Http/Resources/Json/JsonResource.php b/src/Illuminate/Http/Resources/Json/JsonResource.php index 0c2fd151ffbe..335ef4d99c56 100644 --- a/src/Illuminate/Http/Resources/Json/JsonResource.php +++ b/src/Illuminate/Http/Resources/Json/JsonResource.php @@ -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 */ public function toArray(Request $request) { diff --git a/src/Illuminate/Http/Resources/Json/ResourceCollection.php b/src/Illuminate/Http/Resources/Json/ResourceCollection.php index af86849fec1d..4061a154aa72 100644 --- a/src/Illuminate/Http/Resources/Json/ResourceCollection.php +++ b/src/Illuminate/Http/Resources/Json/ResourceCollection.php @@ -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 */ public function toArray(Request $request) {