Skip to content

Commit 8a69ac2

Browse files
committed
Ammend test3
1 parent b42a610 commit 8a69ac2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/reflection/tests/ReflectionType_possible_types.phpt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ $functions = [
2020
foreach ($functions as $function) {
2121
$reflectionFunc = new ReflectionFunction($function);
2222
$returnType = $reflectionFunc->getReturnType();
23-
if ($returnType instanceof ReflectionNamedType) {
24-
var_dump($returnType->getName());
25-
} else {
26-
var_dump(implode('|', $returnType->getTypes()));
27-
}
23+
var_dump($returnType->getName());
2824
}
2925
?>
3026
--EXPECT--

0 commit comments

Comments
 (0)