Skip to content

Commit 1d5cc6a

Browse files
authored
Fixed Entry TValue and TType templates definitions (#1574)
1 parent 4d12134 commit 1d5cc6a

File tree

7 files changed

+23
-28
lines changed

7 files changed

+23
-28
lines changed

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/etl/src/Flow/ETL/Row/Entry.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
use Flow\ETL\Row\Schema\Definition;
99

1010
/**
11-
* @template TValue
12-
* @template TType
11+
* @template-covariant TValue of mixed
12+
* @template-covariant TType of mixed
1313
*/
1414
interface Entry extends \Stringable
1515
{
@@ -25,12 +25,12 @@ public function duplicate() : self;
2525
public function is(string|Reference $name) : bool;
2626

2727
/**
28-
* @param Entry<TValue, TType> $entry
28+
* @param Entry<mixed, mixed> $entry
2929
*/
3030
public function isEqual(self $entry) : bool;
3131

3232
/**
33-
* @param callable(TValue) : TValue $mapper
33+
* @param callable(mixed) : mixed $mapper
3434
*
3535
* @return Entry<TValue, TType>
3636
*/
@@ -58,8 +58,6 @@ public function type() : Type;
5858
public function value();
5959

6060
/**
61-
* @param TValue $value
62-
*
6361
* @return Entry<TValue, TType>
6462
*/
6563
public function withValue(mixed $value) : self;

src/core/etl/tests/Flow/ETL/Tests/Unit/Row/Entry/StringEntryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public function test_map() : void
5555

5656
self::assertEquals(
5757
$entry,
58-
/** @phpstan-ignore-next-line */
5958
$entry->map(fn (string $value) => $value)
6059
);
6160
}

src/core/etl/tests/Flow/ETL/Tests/Unit/Row/Entry/StructureEntryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ public function test_map() : void
125125

126126
self::assertEquals(
127127
$entry,
128-
/** @phpstan-ignore-next-line */
129128
$entry->map(fn (array $entries) : array => $entries)
130129
);
131130
}

src/core/etl/tests/Flow/ETL/Tests/Unit/Row/Entry/TimeEntryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ public function test_map() : void
104104

105105
self::assertEquals(
106106
$entry,
107-
/** @phpstan-ignore-next-line */
108107
$entry->map(fn (\DateInterval $time) => $time)
109108
);
110109
}

tools/cs-fixer/composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/infection/composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)