]> granicus.if.org Git - php/commitdiff
Test for void
authorAndrea Faulds <ajf@ajf.me>
Thu, 28 Jan 2016 18:07:45 +0000 (18:07 +0000)
committerAndrea Faulds <ajf@ajf.me>
Thu, 28 Jan 2016 18:07:45 +0000 (18:07 +0000)
ext/reflection/tests/ReflectionType_possible_types.phpt

index 9f876cb6f56c368b78bf8f15cb530999615174ad..81e08550f252049fb168018b31d8cdb18acffda2 100644 (file)
@@ -4,6 +4,7 @@ ReflectionType possible types
 <?php
 
 $functions = [
+    function(): void {},
     function(): int {},
     function(): float {},
     function(): string {},
@@ -20,6 +21,7 @@ foreach ($functions as $function) {
 }
 ?>
 --EXPECTF--
+string(4) "void"
 string(3) "int"
 string(5) "float"
 string(6) "string"