Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- Enh #372: Rename `ColumnSchemaInterface` to `ColumnInterface` (@Tigrov)
- Enh #373: Replace `DbArrayHelper::getColumn()` with `array_column()` (@Tigrov)
- New #374: Add `IndexType` and `IndexMethod` classes (@Tigrov)
- Bug #377: Explicitly mark nullable parameters (@vjik)

## 1.2.0 March 21, 2024

Expand Down
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function close(): void
}
}

public function createCommand(string $sql = null, array $params = []): PdoCommandInterface
public function createCommand(?string $sql = null, array $params = []): PdoCommandInterface
{
$command = new Command($this);

Expand Down
4 changes: 2 additions & 2 deletions src/DDLQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public function createIndex(
string $table,
string $name,
array|string $columns,
string $indexType = null,
string $indexMethod = null
?string $indexType = null,
?string $indexMethod = null
): string {
return 'CREATE ' . (!empty($indexType) ? $indexType . ' ' : '') . 'INDEX '
. $this->quoter->quoteTableName($name)
Expand Down
2 changes: 1 addition & 1 deletion src/DMLQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function insertWithReturningPks(string $table, QueryInterface|array $colu
throw new NotSupportedException(__METHOD__ . ' is not supported by Mysql.');
}

public function resetSequence(string $table, int|string $value = null): string
public function resetSequence(string $table, int|string|null $value = null): string
{
$tableSchema = $this->schema->getTableSchema($table);

Expand Down
Loading