diff --git a/src/QueryReflection/BasePdoQueryReflector.php b/src/QueryReflection/BasePdoQueryReflector.php index 2a21375d..69ed1875 100644 --- a/src/QueryReflection/BasePdoQueryReflector.php +++ b/src/QueryReflection/BasePdoQueryReflector.php @@ -53,7 +53,7 @@ abstract class BasePdoQueryReflector implements QueryReflector, RecordingReflect protected const MAX_CACHE_SIZE = 50; /** - * @var array|null> + * @var array|null> */ protected array $cache = []; @@ -69,7 +69,7 @@ abstract class BasePdoQueryReflector implements QueryReflector, RecordingReflect protected $stmt = null; /** - * @var array>> + * @var array>> */ protected array $emulatedFlags = []; @@ -138,7 +138,7 @@ public function getResultType(string $queryString, int $fetchType): ?Type } /** - * @return list + * @return array */ protected function emulateFlags(string $nativeType, string $tableName, string $columnName): array { @@ -175,7 +175,7 @@ public function getDatasource() } /** - * @return PDOException|list|null + * @return PDOException|array|null */ abstract protected function simulateQuery(string $queryString); diff --git a/src/QueryReflection/MysqliQueryReflector.php b/src/QueryReflection/MysqliQueryReflector.php index 1c319e99..5e258b5d 100644 --- a/src/QueryReflection/MysqliQueryReflector.php +++ b/src/QueryReflection/MysqliQueryReflector.php @@ -40,7 +40,7 @@ final class MysqliQueryReflector implements QueryReflector, RecordingReflector private const MAX_CACHE_SIZE = 50; /** - * @var array|null> + * @var array|null> */ private array $cache = []; @@ -131,7 +131,7 @@ public function setupDbaApi(?DbaApi $dbaApi): void } /** - * @return mysqli_sql_exception|list|null + * @return mysqli_sql_exception|array|null */ private function simulateQuery(string $queryString) { diff --git a/src/QueryReflection/PdoMysqlQueryReflector.php b/src/QueryReflection/PdoMysqlQueryReflector.php index d78666b8..b74f0b3b 100644 --- a/src/QueryReflection/PdoMysqlQueryReflector.php +++ b/src/QueryReflection/PdoMysqlQueryReflector.php @@ -31,7 +31,7 @@ public function __construct(PDO $pdo) } /** - * @return PDOException|list|null + * @return PDOException|array|null */ protected function simulateQuery(string $queryString) { diff --git a/src/QueryReflection/PdoPgSqlQueryReflector.php b/src/QueryReflection/PdoPgSqlQueryReflector.php index c2765a8a..2554ba95 100644 --- a/src/QueryReflection/PdoPgSqlQueryReflector.php +++ b/src/QueryReflection/PdoPgSqlQueryReflector.php @@ -13,7 +13,7 @@ use function array_shift; /** - * @phpstan-type PDOColumnMeta array{name: string, table?: string, native_type: string, len: int, flags: list} + * @phpstan-type PDOColumnMeta array{name: string, table?: string, native_type: string, len: int, flags: array} */ final class PdoPgSqlQueryReflector extends BasePdoQueryReflector { @@ -28,9 +28,9 @@ public function __construct(PDO $pdo) } /** - * @return PDOException|list|null + * @return PDOException|array|null */ - protected function simulateQuery(string $queryString) // @phpstan-ignore-line + protected function simulateQuery(string $queryString) { if (\array_key_exists($queryString, $this->cache)) { return $this->cache[$queryString];