Skip to content

Commit c5b3e58

Browse files
committed
fix: fix the error of dropColumn comment out.
1 parent da23332 commit c5b3e58

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,11 +2841,6 @@
28412841
'count' => 1,
28422842
'path' => __DIR__ . '/system/Database/Forge.php',
28432843
];
2844-
$ignoreErrors[] = [
2845-
'message' => '#^Method CodeIgniter\\\\Database\\\\Forge\\:\\:dropColumn\\(\\) has parameter \\$columnNames with no value type specified in iterable type array\\.$#',
2846-
'count' => 1,
2847-
'path' => __DIR__ . '/system/Database/Forge.php',
2848-
];
28492844
$ignoreErrors[] = [
28502845
'message' => '#^Method CodeIgniter\\\\Database\\\\Forge\\:\\:modifyColumn\\(\\) has parameter \\$fields with no value type specified in iterable type array\\.$#',
28512846
'count' => 1,

system/Database/Forge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ public function addColumn(string $table, $fields): bool
778778
}
779779

780780
/**
781-
* @param array|string $columnNames column names to DROP
781+
* @param list<string>|string $columnNames column names to DROP
782782
*
783783
* @return bool
784784
*

system/Database/SQLite3/Forge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ protected function _alterTable(string $alterType, string $table, $processedField
154154
}
155155

156156
/**
157-
* @param array|string $columnNames column names to DROP
157+
* @param list<string>|string $columnNames column names to DROP
158158
*
159159
* @return bool
160160
*

0 commit comments

Comments
 (0)