diff --git a/Database/Traits/QueryTrait.php b/Database/Traits/QueryTrait.php index fb979107..c8e90611 100644 --- a/Database/Traits/QueryTrait.php +++ b/Database/Traits/QueryTrait.php @@ -69,7 +69,7 @@ trait QueryTrait */ public function case(string $column, callable $callable): static { - $caseWhen = new CaseWhen($column, $this); + $caseWhen = new When($column, $this); call_user_func($callable, $caseWhen); diff --git a/Database/Traits/CaseWhen.php b/Database/Traits/When.php similarity index 98% rename from Database/Traits/CaseWhen.php rename to Database/Traits/When.php index a40313d9..ada3e977 100644 --- a/Database/Traits/CaseWhen.php +++ b/Database/Traits/When.php @@ -14,7 +14,7 @@ use JetBrains\PhpStorm\Pure; * Class CaseWhen * @package Database\Traits */ -class CaseWhen +class When { public ActiveQuery|QueryTrait $query;