Skip to content

Commit

Permalink
Method signature type hints in class SqliteSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Feb 23, 2024
1 parent a188450 commit 801d805
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SqliteSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ protected function getCreateTable($schema, $table)
* @psalm-suppress MixedAssignment
* @psalm-suppress MixedArgument
*/
protected function setRawCols(array &$cols, $schema, $table, $create)
protected function setRawCols(array &$cols, string $schema, string $table, string $create)
{
$table = $this->quoteName((string)$table);
$table = $this->quoteName($table);
$raw_cols = $this->pdoFetchAll("PRAGMA {$schema}TABLE_INFO({$table})");
foreach ($raw_cols as $val) {
$this->addColFromRaw($cols, $val, $create);
Expand All @@ -168,7 +168,7 @@ protected function setRawCols(array &$cols, $schema, $table, $create)
* @psalm-suppress MixedAssignment
* @psalm-suppress MixedArrayOffset
*/
protected function addColFromRaw(array &$cols, array $val, $create)
protected function addColFromRaw(array &$cols, array $val, string $create)
{
$name = $val['name'];
[$type, $size, $scale] = $this->getTypeSizeScope((string)$val['type']);
Expand Down

0 comments on commit 801d805

Please sign in to comment.