@@ -120,10 +120,6 @@ Assert::same('string', Reflection::getReturnType(new \ReflectionMethod(A::class,
120120
121121Assert::same ('A ' , Reflection::getReturnType (new \ReflectionMethod (A::class, 'nullableSelfType ' )));
122122
123- Assert::same (['A ' , 'array ' ], Reflection::getReturnTypes (new \ReflectionMethod (A::class, 'unionType ' )));
124-
125- Assert::same (['A ' , 'array ' , 'null ' ], Reflection::getReturnTypes (new \ReflectionMethod (A::class, 'nullableUnionType ' )));
126-
127123Assert::exception (function () {
128124 Reflection::getReturnType (new \ReflectionMethod (A::class, 'unionType ' ));
129125}, Nette \InvalidStateException::class, 'The A::unionType() is not expected to have a union or intersection type. ' );
@@ -144,8 +140,6 @@ Assert::same('Test\B', Reflection::getReturnType(new \ReflectionFunction('classT
144140
145141Assert::same ('string ' , Reflection::getReturnType (new \ReflectionFunction ('nativeType ' )));
146142
147- Assert::same (['A ' , 'array ' ], Reflection::getReturnTypes (new \ReflectionFunction ('unionType ' )));
148-
149143Assert::exception (function () {
150144 Reflection::getReturnType (new \ReflectionFunction ('unionType ' ));
151145}, Nette \InvalidStateException::class, 'The unionType() is not expected to have a union or intersection type. ' );
@@ -157,4 +151,3 @@ Assert::exception(function () {
157151
158152// tentative type
159153Assert::same ('int ' , Reflection::getReturnType (new \ReflectionMethod (\ArrayObject::class, 'count ' )));
160- Assert::same (['int ' ], Reflection::getReturnTypes (new \ReflectionMethod (\ArrayObject::class, 'count ' )));
0 commit comments