diff --git a/framework/db/Query.php b/framework/db/Query.php index 79e81b0d75..c81ab85e09 100644 --- a/framework/db/Query.php +++ b/framework/db/Query.php @@ -748,7 +748,7 @@ PATTERN; */ public function from($tables) { - if ($tables instanceof Expression) { + if ($tables instanceof ExpressionInterface) { $tables = [$tables]; } if (is_string($tables)) {