Skip to content
Open
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
2 changes: 1 addition & 1 deletion analysis-baseline.toml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ count = 1
[[issues]]
file = "src/Driver.php"
code = "incompatible-parameter-type"
message = 'Parameter `$sqlOrResource` of `PhpDb\Mysql\Driver::createstatement()` expects type `mysqli|mysqli_stmt|string` but parent `PhpDb\Adapter\Driver\DriverInterface::createstatement()` expects type `resource|string`'
message = 'Parameter `$sqlOrResource` of `PhpDb\Mysql\Driver::createstatement()` expects type `mysqli_stmt|null|string` but parent `PhpDb\Adapter\Driver\DriverInterface::createstatement()` expects type `null|resource|string`'
count = 1

[[issues]]
Expand Down
2 changes: 1 addition & 1 deletion src/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function createResult($resource, ?bool $isBuffered = null): ResultInterfa
/**
* Create statement
*
* @param mysqli|mysqli_stmt|string $sqlOrResource
* @param mysqli_stmt|string|null $sqlOrResource A prepared mysqli_stmt to wrap, or the SQL to prepare
*
* @throws PhpDbExceptionInterface
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Sql/Ddl/ColumnOptionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ protected function getSqlInsertOffsets(string $sql): array
switch ($needle) {
case 'REFERENCES':
$insertStart[2] ??= $insertPos;
// no break
// no break
case 'PRIMARY':
case 'UNIQUE':
$insertStart[1] ??= $insertPos;
// no break
// no break
default:
$insertStart[0] ??= $insertPos;
}
Expand Down
Loading