This commit is contained in:
2021-03-26 14:59:24 +08:00
parent a3ebda57ac
commit bffd2f508d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ trait QueryTrait
*/ */
public function case(string $column, callable $callable): static public function case(string $column, callable $callable): static
{ {
$caseWhen = new CaseWhen($column, $this); $caseWhen = new When($column, $this);
call_user_func($callable, $caseWhen); call_user_func($callable, $caseWhen);
@@ -14,7 +14,7 @@ use JetBrains\PhpStorm\Pure;
* Class CaseWhen * Class CaseWhen
* @package Database\Traits * @package Database\Traits
*/ */
class CaseWhen class When
{ {
public ActiveQuery|QueryTrait $query; public ActiveQuery|QueryTrait $query;