Skip to content

Commit 0480a0e

Browse files
committed
Move test and actually call it
1 parent b4c3783 commit 0480a0e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Zend/tests/type_declarations/union_types/standalone_null.phpt renamed to Zend/tests/type_declarations/standalone_null.phpt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ Null can be used as a standalone type
33
--FILE--
44
<?php
55

6-
function test(): null {}
6+
function test(null $v): null {
7+
return $v;
8+
}
9+
10+
var_dump(test(null));
711

812
?>
913
===DONE===
1014
--EXPECT--
15+
NULL
1116
===DONE===

0 commit comments

Comments
 (0)