This commit is contained in:
2021-01-11 17:28:17 +08:00
parent 1d07c78f1a
commit a21f06f1b7
+2 -2
View File
@@ -727,10 +727,10 @@ trait QueryTrait
} }
/** /**
* @param array|callable $conditions * @param callable|array|string $conditions
* @return $this * @return $this
*/ */
public function where(callable|array $conditions): static public function where(callable|array|string $conditions): static
{ {
if ($conditions instanceof \Closure) { if ($conditions instanceof \Closure) {
call_user_func($conditions, $this); call_user_func($conditions, $this);