From 8f9d75a1da53b1efdd9ec32762058dac7cb84c79 Mon Sep 17 00:00:00 2001 From: Italo Date: Wed, 10 Apr 2024 06:32:39 +0000 Subject: [PATCH] [1.x] Uses builder contracts --- src/RefineQuery.php | 1 + src/Refiner.php | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/RefineQuery.php b/src/RefineQuery.php index 9a85cce..1ba6c3c 100644 --- a/src/RefineQuery.php +++ b/src/RefineQuery.php @@ -12,6 +12,7 @@ use Laragear\Refine\Contracts\ValidatesRefiner; use ReflectionMethod; use ReflectionObject; + use function app; use function array_flip; use function array_values; diff --git a/src/Refiner.php b/src/Refiner.php index 85bd379..2ecd553 100644 --- a/src/Refiner.php +++ b/src/Refiner.php @@ -30,10 +30,6 @@ public function getObligatoryKeys(Request $request): array /** * Run before the refiner executes its matched methods. - * - * @param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query - * @param \Illuminate\Http\Request $request - * @return void */ public function runBefore(Builder|EloquentBuilder $query, Request $request): void {