Test for void

This commit is contained in:
Andrea Faulds 2016-01-28 18:07:45 +00:00
parent 8412de9da5
commit 1b36037689

View 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"