From 263f99c8c369f4763d2889de6c371f6f39f1ce28 Mon Sep 17 00:00:00 2001 From: whwyy Date: Fri, 13 Dec 2024 14:34:06 +0800 Subject: [PATCH] eee --- Traits/QueryTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Traits/QueryTrait.php b/Traits/QueryTrait.php index 22639d0..deca613 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -401,7 +401,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq public function from(string|Closure $tableName): static { if ($tableName instanceof Closure) { - $this->from = call_user_func($tableName, $this->queryInstance()); + $this->from = $this->makeClosureFunction($tableName); } else if (class_exists($tableName)) { $this->from = (new $tableName)->getTable(); } else {