Skip to content

Commit 801d805

Browse files
author
rotimi
committed
Method signature type hints in class SqliteSchema
1 parent a188450 commit 801d805

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SqliteSchema.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ protected function getCreateTable($schema, $table)
144144
* @psalm-suppress MixedAssignment
145145
* @psalm-suppress MixedArgument
146146
*/
147-
protected function setRawCols(array &$cols, $schema, $table, $create)
147+
protected function setRawCols(array &$cols, string $schema, string $table, string $create)
148148
{
149-
$table = $this->quoteName((string)$table);
149+
$table = $this->quoteName($table);
150150
$raw_cols = $this->pdoFetchAll("PRAGMA {$schema}TABLE_INFO({$table})");
151151
foreach ($raw_cols as $val) {
152152
$this->addColFromRaw($cols, $val, $create);
@@ -168,7 +168,7 @@ protected function setRawCols(array &$cols, $schema, $table, $create)
168168
* @psalm-suppress MixedAssignment
169169
* @psalm-suppress MixedArrayOffset
170170
*/
171-
protected function addColFromRaw(array &$cols, array $val, $create)
171+
protected function addColFromRaw(array &$cols, array $val, string $create)
172172
{
173173
$name = $val['name'];
174174
[$type, $size, $scale] = $this->getTypeSizeScope((string)$val['type']);

0 commit comments

Comments
 (0)