This commit is contained in:
2021-06-28 14:58:21 +08:00
parent c4cf051139
commit b5bd2d12f8
+1 -1
View File
@@ -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);