@@ -31,7 +31,7 @@ public function testParameterAsArray()
3131 $ methodReflection = $ this ->createMock (MethodReflection::class);
3232 $ methodReflection
3333 ->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))]));
3535
3636 $ scope = $ this ->createMock (Scope::class);
3737 $ scope ->method ('getType ' )->willReturn (new TrueBooleanType ());
@@ -57,7 +57,7 @@ public function testParameterAsArrayHash()
5757 $ methodReflection = $ this ->createMock (MethodReflection::class);
5858 $ methodReflection
5959 ->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))]));
6161
6262 $ scope = $ this ->createMock (Scope::class);
6363 $ scope ->method ('getType ' )->willReturn (new FalseBooleanType ());
@@ -84,7 +84,7 @@ public function testDefaultParameterIsArrayHash()
8484 $ methodReflection = $ this ->createMock (MethodReflection::class);
8585 $ methodReflection
8686 ->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))]));
8888
8989 $ scope = $ this ->createMock (Scope::class);
9090 $ scope ->method ('getType ' )->willReturn (new FalseBooleanType ());
0 commit comments