Skip to content

Commit 17837ca

Browse files
authored
Make Type implementations nullable (#1357)
1 parent 81cdf31 commit 17837ca

39 files changed

+41
-41
lines changed

src/core/etl/src/Flow/ETL/Function/Count.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function over(Window $window) : WindowFunction
5454
}
5555

5656
/**
57-
* @return Entry<?int, int>
57+
* @return Entry<?int, ?int>
5858
*/
5959
public function result() : Entry
6060
{

src/core/etl/src/Flow/ETL/Function/Max.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function aggregate(Row $row) : void
4343
}
4444

4545
/**
46-
* @return Entry<?\DateTimeInterface, \DateTimeInterface>|Entry<?float, float>|Entry<?int, int>
46+
* @return Entry<?\DateTimeInterface, ?\DateTimeInterface>|Entry<?float, ?float>|Entry<?int, ?int>
4747
*/
4848
public function result() : Entry
4949
{

src/core/etl/src/Flow/ETL/Function/Min.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function aggregate(Row $row) : void
4343
}
4444

4545
/**
46-
* @return Entry<?\DateTimeInterface, \DateTimeInterface>|Entry<?float, float>|Entry<?int, int>
46+
* @return Entry<?\DateTimeInterface, ?\DateTimeInterface>|Entry<?float, ?float>|Entry<?int, ?int>
4747
*/
4848
public function result() : Entry
4949
{

src/core/etl/src/Flow/ETL/Function/Sum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function over(Window $window) : WindowFunction
5959
}
6060

6161
/**
62-
* @return Entry<?float, float>|Entry<?int,int>
62+
* @return Entry<?float, ?float>|Entry<?int,?int>
6363
*/
6464
public function result() : Entry
6565
{

src/core/etl/src/Flow/ETL/PHP/Type/Logical/DateTimeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Flow\ETL\PHP\Type\Type;
1010

1111
/**
12-
* @implements Type<\DateTimeInterface>
12+
* @implements Type<?\DateTimeInterface>
1313
*/
1414
final readonly class DateTimeType implements Type
1515
{

src/core/etl/src/Flow/ETL/PHP/Type/Logical/DateType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Flow\ETL\PHP\Type\Type;
1010

1111
/**
12-
* @implements Type<\DateTimeInterface>
12+
* @implements Type<?\DateTimeInterface>
1313
*/
1414
final readonly class DateType implements Type
1515
{

src/core/etl/src/Flow/ETL/PHP/Type/Logical/JsonType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Flow\ETL\PHP\Type\Type;
1111

1212
/**
13-
* @implements Type<string>
13+
* @implements Type<?string>
1414
*/
1515
final readonly class JsonType implements Type
1616
{

src/core/etl/src/Flow/ETL/PHP/Type/Logical/ListType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Flow\ETL\PHP\Type\{Type, TypeFactory};
1010

1111
/**
12-
* @implements Type<list<mixed>>
12+
* @implements Type<?list<mixed>>
1313
*/
1414
final readonly class ListType implements Type
1515
{

src/core/etl/src/Flow/ETL/PHP/Type/Logical/MapType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Flow\ETL\PHP\Type\{Type, TypeFactory};
1010

1111
/**
12-
* @implements Type<array<array-key, mixed>>
12+
* @implements Type<?array<array-key, mixed>>
1313
*/
1414
final readonly class MapType implements Type
1515
{

src/core/etl/src/Flow/ETL/PHP/Type/Logical/StructureType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Flow\ETL\PHP\Type\{Type, TypeFactory};
1010

1111
/**
12-
* @implements Type<array<string, mixed>>
12+
* @implements Type<?array<string, mixed>>
1313
*/
1414
final readonly class StructureType implements Type
1515
{

0 commit comments

Comments
 (0)