Skip to content

Commit a5f2516

Browse files
authoredMar 23, 2024
Fixed implicitly nullable params (#6616)
1 parent 83f2c0d commit a5f2516

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

Diff for: ‎src/Schema/Grammars/SQLiteGrammar.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public function typeMultiPolygon(Fluent $column): string
429429
return 'multipolygon';
430430
}
431431

432-
protected function getIndexColumns(Connection $connection, string $tableName = null): array
432+
protected function getIndexColumns(Connection $connection, ?string $tableName = null): array
433433
{
434434
$sql = <<<'SQL'
435435
SELECT t.name AS table_name,
@@ -460,7 +460,7 @@ protected function getIndexColumns(Connection $connection, string $tableName = n
460460
/**
461461
* @see http://ezcomponents.org/docs/api/trunk/DatabaseSchema/ezcDbSchemaPgsqlReader.html
462462
*/
463-
protected function getTableIndexesList(Connection $connection, array $tableIndexes, string $tableName = null): array
463+
protected function getTableIndexesList(Connection $connection, array $tableIndexes, ?string $tableName = null): array
464464
{
465465
$indexBuffer = [];
466466

Diff for: ‎src/Schema/SQLiteBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function getIndexListing(string $table): array
8383
*
8484
* @param array|string $index
8585
*/
86-
public function hasIndex(string $table, $index, string $type = null): bool
86+
public function hasIndex(string $table, $index, ?string $type = null): bool
8787
{
8888
$type = is_null($type) ? $type : strtolower($type);
8989

0 commit comments

Comments
 (0)
Please sign in to comment.