From 081a946eb7f47ba970785fcde4a491f0e3e0f4fe Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Wed, 22 Jan 2025 15:31:48 +0100 Subject: [PATCH 1/3] fix: allow string id on PHPDoc for ShowOperation --- src/app/Http/Controllers/Operations/ShowOperation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Http/Controllers/Operations/ShowOperation.php b/src/app/Http/Controllers/Operations/ShowOperation.php index d2eedc72d8..bd573b2f0a 100644 --- a/src/app/Http/Controllers/Operations/ShowOperation.php +++ b/src/app/Http/Controllers/Operations/ShowOperation.php @@ -65,7 +65,7 @@ protected function setupShowDefaults() /** * Display the specified resource. * - * @param int $id + * @param int|string $id * @return \Illuminate\Contracts\View\View */ public function show($id) From d53795399c293357f90d8dcbc263a4a307374b85 Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Wed, 22 Jan 2025 15:31:56 +0100 Subject: [PATCH 2/3] fix: allow string id on PHPDoc for UpdateOperation --- src/app/Http/Controllers/Operations/UpdateOperation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Http/Controllers/Operations/UpdateOperation.php b/src/app/Http/Controllers/Operations/UpdateOperation.php index f3c622a9c5..6913773329 100644 --- a/src/app/Http/Controllers/Operations/UpdateOperation.php +++ b/src/app/Http/Controllers/Operations/UpdateOperation.php @@ -57,7 +57,7 @@ protected function setupUpdateDefaults() /** * Show the form for editing the specified resource. * - * @param int $id + * @param int|string $id * @return \Illuminate\Contracts\View\View */ public function edit($id) From 8812778ec3fa6b5d4d0f783f18b963c3973ad847 Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Wed, 22 Jan 2025 15:32:39 +0100 Subject: [PATCH 3/3] fix: allow string id on PHPDoc for Read trait --- src/app/Library/CrudPanel/Traits/Read.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/Library/CrudPanel/Traits/Read.php b/src/app/Library/CrudPanel/Traits/Read.php index fa30de949d..1c64346ae9 100644 --- a/src/app/Library/CrudPanel/Traits/Read.php +++ b/src/app/Library/CrudPanel/Traits/Read.php @@ -64,7 +64,7 @@ public function getCurrentEntryWithLocale() /** * Find and retrieve an entry in the database or fail. * - * @param int The id of the row in the db to fetch. + * @param int|string The id of the row in the db to fetch. * @return \Illuminate\Database\Eloquent\Model The row in the db. */ public function getEntry($id) @@ -116,7 +116,7 @@ public function getModelWithCrudPanelQuery() /** * Find and retrieve an entry in the database or fail. * - * @param int The id of the row in the db to fetch. + * @param int|string The id of the row in the db to fetch. * @return \Illuminate\Database\Eloquent\Model The row in the db. */ public function getEntryWithoutFakes($id)