Skip to content

Commit 4e1c168

Browse files
committed
fix phpstan issues
1 parent 8efeec0 commit 4e1c168

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/Types/AggregatedType.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ abstract class AggregatedType implements Type, IteratorAggregate
3939
private $token;
4040

4141
/**
42-
* @param Type[] $types
43-
*
44-
* @phpstan-param list<Type> $types
42+
* @param array<Type> $types
4543
*/
4644
public function __construct(array $types, string $token)
4745
{

src/Types/Compound.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ final class Compound extends AggregatedType
2929
/**
3030
* Initializes a compound type (i.e. `string|int`) and tests if the provided types all implement the Type interface.
3131
*
32-
* @param Type[] $types
33-
*
34-
* @phpstan-param list<Type> $types
32+
* @param array<Type> $types
3533
*/
3634
public function __construct(array $types)
3735
{

src/Types/Intersection.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ final class Intersection extends AggregatedType
2828
/**
2929
* Initializes a intersection type (i.e. `\A&\B`) and tests if the provided types all implement the Type interface.
3030
*
31-
* @param Type[] $types
32-
*
33-
* @phpstan-param list<Type> $types
31+
* @param array<Type> $types
3432
*/
3533
public function __construct(array $types)
3634
{

0 commit comments

Comments
 (0)