@@ -31,7 +31,7 @@ public function testParameterAsArray()
31
31
$ methodReflection = $ this ->createMock (MethodReflection::class);
32
32
$ methodReflection
33
33
->method ('getReturnType ' )
34
- ->willReturn (new UnionType ([new ArrayType (new MixedType ()) , new IterableIterableType (new ObjectType (\Nette \Utils \ArrayHash::class))]));
34
+ ->willReturn (new UnionType ([new ArrayType (new MixedType (), new MixedType ()) , new IterableIterableType (new MixedType (), new ObjectType (\Nette \Utils \ArrayHash::class))]));
35
35
36
36
$ scope = $ this ->createMock (Scope::class);
37
37
$ scope ->method ('getType ' )->willReturn (new TrueBooleanType ());
@@ -57,7 +57,7 @@ public function testParameterAsArrayHash()
57
57
$ methodReflection = $ this ->createMock (MethodReflection::class);
58
58
$ methodReflection
59
59
->method ('getReturnType ' )
60
- ->willReturn (new UnionType ([new ArrayType (new MixedType ()) , new IterableIterableType (new ObjectType (\Nette \Utils \ArrayHash::class))]));
60
+ ->willReturn (new UnionType ([new ArrayType (new MixedType (), new MixedType ()) , new IterableIterableType (new MixedType (), new ObjectType (\Nette \Utils \ArrayHash::class))]));
61
61
62
62
$ scope = $ this ->createMock (Scope::class);
63
63
$ scope ->method ('getType ' )->willReturn (new FalseBooleanType ());
@@ -84,7 +84,7 @@ public function testDefaultParameterIsArrayHash()
84
84
$ methodReflection = $ this ->createMock (MethodReflection::class);
85
85
$ methodReflection
86
86
->method ('getReturnType ' )
87
- ->willReturn (new UnionType ([new ArrayType (new MixedType ()) , new IterableIterableType (new ObjectType (\Nette \Utils \ArrayHash::class))]));
87
+ ->willReturn (new UnionType ([new ArrayType (new MixedType (), new MixedType ()) , new IterableIterableType (new MixedType (), new ObjectType (\Nette \Utils \ArrayHash::class))]));
88
88
89
89
$ scope = $ this ->createMock (Scope::class);
90
90
$ scope ->method ('getType ' )->willReturn (new FalseBooleanType ());
0 commit comments