diff --git a/src/Driver.php b/src/Driver.php index 29545b2..a8a205a 100644 --- a/src/Driver.php +++ b/src/Driver.php @@ -78,7 +78,7 @@ public function getUpsertSQL(string $table, array $row): string; * * Example for MySQL: 'foo' => '`foo`' */ - public function quoteIdentifier(string $name) : string; + public function quoteIdentifier(string $name): string; /** * Returns a quoted table identifier for the given table. @@ -92,5 +92,5 @@ public function getTableIdentifier(Table $table): string; * * @param scalar|null $value */ - public function quoteValue($value) : string; + public function quoteValue($value): string; } diff --git a/src/Driver/MySQLDriver.php b/src/Driver/MySQLDriver.php index b93561d..af65e47 100644 --- a/src/Driver/MySQLDriver.php +++ b/src/Driver/MySQLDriver.php @@ -216,7 +216,7 @@ public function getUpsertSQL(string $table, array $row): string return sprintf('INSERT INTO %s SET %s ON DUPLICATE KEY UPDATE %s;', $table, $values, $values); } - public function quoteIdentifier(string $name) : string + public function quoteIdentifier(string $name): string { return '`' . str_replace('`', '``', $name) . '`'; } @@ -226,7 +226,7 @@ public function getTableIdentifier(Table $table): string return $this->quoteIdentifier($table->schema) . '.' . $this->quoteIdentifier($table->name); } - public function quoteValue($value) : string + public function quoteValue($value): string { if ($value === null) { return 'NULL';