mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Test for void
This commit is contained in:
parent
8412de9da5
commit
1b36037689
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user