mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +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
|
<?php
|
||||||
|
|
||||||
$functions = [
|
$functions = [
|
||||||
|
function(): void {},
|
||||||
function(): int {},
|
function(): int {},
|
||||||
function(): float {},
|
function(): float {},
|
||||||
function(): string {},
|
function(): string {},
|
||||||
|
@ -20,6 +21,7 @@ foreach ($functions as $function) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
|
string(4) "void"
|
||||||
string(3) "int"
|
string(3) "int"
|
||||||
string(5) "float"
|
string(5) "float"
|
||||||
string(6) "string"
|
string(6) "string"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue