Skip to content

Commit b4c2112

Browse files
committed
Apply nit to reflection test
1 parent 032f276 commit b4c2112

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/reflection/tests/intersection_types.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Intersection types in reflection
55

66
function dumpType(ReflectionIntersectionType $rt) {
77
echo "Type $rt:\n";
8-
echo "Allows null: " . ($rt->allowsNull() ? "true" : "false") . "\n";
8+
echo "Allows null: " . json_encode($rt->allowsNull()) . "\n";
99
foreach ($rt->getTypes() as $type) {
1010
echo " Name: " . $type->getName() . "\n";
1111
echo " String: " . (string) $type . "\n";
12-
echo " Allows Null: " . ($type->allowsNull() ? "true" : "false") . "\n";
12+
echo " Allows Null: " . json_encode($type->allowsNull()) . "\n";
1313
}
1414
}
1515

0 commit comments

Comments
 (0)