File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ()),
You can’t perform that action at this time.
0 commit comments