Skip to content

Commit 0e4ba8a

Browse files
committed
drop unnecessary list type
1 parent 9e5fcbf commit 0e4ba8a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/QueryReflection/BasePdoQueryReflector.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ abstract class BasePdoQueryReflector implements QueryReflector, RecordingReflect
5353
protected const MAX_CACHE_SIZE = 50;
5454

5555
/**
56-
* @var array<string, PDOException|list<ColumnMeta>|null>
56+
* @var array<string, PDOException|array<ColumnMeta>|null>
5757
*/
5858
protected array $cache = [];
5959

@@ -69,7 +69,7 @@ abstract class BasePdoQueryReflector implements QueryReflector, RecordingReflect
6969
protected $stmt = null;
7070

7171
/**
72-
* @var array<string, array<string, list<string>>>
72+
* @var array<string, array<string, array<int, string>>>
7373
*/
7474
protected array $emulatedFlags = [];
7575

@@ -138,7 +138,7 @@ public function getResultType(string $queryString, int $fetchType): ?Type
138138
}
139139

140140
/**
141-
* @return list<string>
141+
* @return array<int, string>
142142
*/
143143
protected function emulateFlags(string $nativeType, string $tableName, string $columnName): array
144144
{
@@ -175,7 +175,7 @@ public function getDatasource()
175175
}
176176

177177
/**
178-
* @return PDOException|list<ColumnMeta>|null
178+
* @return PDOException|array<ColumnMeta>|null
179179
*/
180180
abstract protected function simulateQuery(string $queryString);
181181

src/QueryReflection/MysqliQueryReflector.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ final class MysqliQueryReflector implements QueryReflector, RecordingReflector
4040
private const MAX_CACHE_SIZE = 50;
4141

4242
/**
43-
* @var array<string, mysqli_sql_exception|list<object>|null>
43+
* @var array<string, mysqli_sql_exception|array<object>|null>
4444
*/
4545
private array $cache = [];
4646

@@ -131,7 +131,7 @@ public function setupDbaApi(?DbaApi $dbaApi): void
131131
}
132132

133133
/**
134-
* @return mysqli_sql_exception|list<object>|null
134+
* @return mysqli_sql_exception|array<object>|null
135135
*/
136136
private function simulateQuery(string $queryString)
137137
{

src/QueryReflection/PdoMysqlQueryReflector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(PDO $pdo)
3131
}
3232

3333
/**
34-
* @return PDOException|list<ColumnMeta>|null
34+
* @return PDOException|array<ColumnMeta>|null
3535
*/
3636
protected function simulateQuery(string $queryString)
3737
{

src/QueryReflection/PdoPgSqlQueryReflector.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use function array_shift;
1414

1515
/**
16-
* @phpstan-type PDOColumnMeta array{name: string, table?: string, native_type: string, len: int, flags: list<string>}
16+
* @phpstan-type PDOColumnMeta array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}
1717
*/
1818
final class PdoPgSqlQueryReflector extends BasePdoQueryReflector
1919
{
@@ -28,9 +28,9 @@ public function __construct(PDO $pdo)
2828
}
2929

3030
/**
31-
* @return PDOException|list<PDOColumnMeta>|null
31+
* @return PDOException|array<PDOColumnMeta>|null
3232
*/
33-
protected function simulateQuery(string $queryString) // @phpstan-ignore-line
33+
protected function simulateQuery(string $queryString)
3434
{
3535
if (\array_key_exists($queryString, $this->cache)) {
3636
return $this->cache[$queryString];

0 commit comments

Comments
 (0)