mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Test for void
This commit is contained in:
parent
8412de9da5
commit
1b36037689
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue