diff --git a/Connection.php b/Connection.php index 8c0c3a2..e172d53 100644 --- a/Connection.php +++ b/Connection.php @@ -312,7 +312,7 @@ class Connection extends Component */ public function createCommand(string $sql, array $attributes = []): Command { - return (new Command(['connection' => $this, 'sql' => $sql]))->bindValues($attributes); + return new Command(['connection' => $this, 'sql' => $sql])->bindValues($attributes); }