We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 032f276 commit b4c2112Copy full SHA for b4c2112
ext/reflection/tests/intersection_types.phpt
@@ -5,11 +5,11 @@ Intersection types in reflection
5
6
function dumpType(ReflectionIntersectionType $rt) {
7
echo "Type $rt:\n";
8
- echo "Allows null: " . ($rt->allowsNull() ? "true" : "false") . "\n";
+ echo "Allows null: " . json_encode($rt->allowsNull()) . "\n";
9
foreach ($rt->getTypes() as $type) {
10
echo " Name: " . $type->getName() . "\n";
11
echo " String: " . (string) $type . "\n";
12
- echo " Allows Null: " . ($type->allowsNull() ? "true" : "false") . "\n";
+ echo " Allows Null: " . json_encode($type->allowsNull()) . "\n";
13
}
14
15
0 commit comments