Skip to content

Commit 0c4b4a5

Browse files
committed
Fix type errors
1 parent a152c34 commit 0c4b4a5

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

src/DoctrineReflection/DoctrineStatementObjectType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
final class DoctrineStatementObjectType extends ObjectType
1414
{
15-
private ?Type $rowType;
15+
private ?Type $rowType = null;
1616

1717
public static function newWithRowType(Type $rowType): self
1818
{

src/PdoReflection/PdoStatementObjectType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
class PdoStatementObjectType extends ObjectType
2626
{
27-
private ?Type $bothType;
27+
private ?Type $bothType = null;
2828

2929
/**
3030
* @var null|QueryReflector::FETCH_TYPE*

src/TypeMapping/MysqlTypeMapper.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ public function __construct(?DbaApi $dbaApi)
2929
$this->dbaApi = $dbaApi;
3030
}
3131

32-
/**
33-
* @param list<string> $mysqlFlags
34-
*/
3532
public function mapToPHPStanType(string $mysqlType, array $mysqlFlags, int $length): Type
3633
{
3734
$numeric = false;

src/TypeMapping/PgsqlTypeMapper.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ public function __construct(?DbaApi $dbaApi)
2929
$this->dbaApi = $dbaApi;
3030
}
3131

32-
/**
33-
* @param list<string> $flags
34-
*/
3532
public function mapToPHPStanType(string $type, array $flags, int $length): Type
3633
{
3734
$numeric = false;

src/TypeMapping/TypeMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface TypeMapper
1717
public const FLAG_UNSIGNED = 'UNSIGNED';
1818

1919
/**
20-
* @param list<string> $flags
20+
* @param array<string> $flags
2121
*/
2222
public function mapToPHPStanType(string $type, array $flags, int $length): Type;
2323

0 commit comments

Comments
 (0)