Skip to content

Commit e7faf08

Browse files
committed
TypeCombinatorTest - use yield from to add conditional test cases later
1 parent d0bd75f commit e7faf08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/PHPStan/Type/TypeCombinatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ public function testRemoveNull(
242242
$this->assertInstanceOf($expectedTypeClass, $result);
243243
}
244244

245-
public function dataUnion(): array
245+
public function dataUnion(): iterable
246246
{
247-
return [
247+
yield from [
248248
[
249249
[
250250
new StringType(),
@@ -1959,11 +1959,11 @@ public function testUnionInversed(
19591959
$this->assertInstanceOf($expectedTypeClass, $actualType);
19601960
}
19611961

1962-
public function dataIntersect(): array
1962+
public function dataIntersect(): iterable
19631963
{
19641964
$reflectionProvider = $this->createReflectionProvider();
19651965

1966-
return [
1966+
yield from [
19671967
[
19681968
[
19691969
new IterableType(new MixedType(), new StringType()),

0 commit comments

Comments
 (0)