diff --git a/Database/Connection.php b/Database/Connection.php index 13b4ab83..501e67cf 100644 --- a/Database/Connection.php +++ b/Database/Connection.php @@ -257,7 +257,7 @@ class Connection extends Component * @return Command * @throws */ - public function createCommand($sql = null, $attributes = []): Command + public function createCommand($sql = null, array $attributes = []): Command { $command = new Command(['db' => $this, 'sql' => $sql]); return $command->bindValues($attributes);