Skip to content

Commit

Permalink
Fix type errors (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Nov 7, 2024
1 parent a152c34 commit 4a7d5f3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/DoctrineReflection/DoctrineStatementObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

final class DoctrineStatementObjectType extends ObjectType
{
private ?Type $rowType;
private ?Type $rowType = null;

public static function newWithRowType(Type $rowType): self
{
Expand Down
2 changes: 1 addition & 1 deletion src/PdoReflection/PdoStatementObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

class PdoStatementObjectType extends ObjectType
{
private ?Type $bothType;
private ?Type $bothType = null;

/**
* @var null|QueryReflector::FETCH_TYPE*
Expand Down
3 changes: 0 additions & 3 deletions src/TypeMapping/MysqlTypeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ public function __construct(?DbaApi $dbaApi)
$this->dbaApi = $dbaApi;
}

/**
* @param list<string> $mysqlFlags
*/
public function mapToPHPStanType(string $mysqlType, array $mysqlFlags, int $length): Type
{
$numeric = false;
Expand Down
3 changes: 0 additions & 3 deletions src/TypeMapping/PgsqlTypeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ public function __construct(?DbaApi $dbaApi)
$this->dbaApi = $dbaApi;
}

/**
* @param list<string> $flags
*/
public function mapToPHPStanType(string $type, array $flags, int $length): Type
{
$numeric = false;
Expand Down
2 changes: 1 addition & 1 deletion src/TypeMapping/TypeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface TypeMapper
public const FLAG_UNSIGNED = 'UNSIGNED';

/**
* @param list<string> $flags
* @param array<string> $flags
*/
public function mapToPHPStanType(string $type, array $flags, int $length): Type;

Expand Down

0 comments on commit 4a7d5f3

Please sign in to comment.