blob: 7c6093a55c9fea91cd23bc840a2cff6adaf49d06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--TEST--
public bool ReflectionParameter::isArray ( void );
--CREDITS--
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
--FILE--
<?php
function testReflectionIsArray(array $a, ?array $b, iterable $c, array|string $d) {}
$reflection = new ReflectionFunction('testReflectionIsArray');
foreach ($reflection->getParameters() as $parameter) {
var_dump($parameter->isArray());
}
?>
--EXPECT--
bool(true)
bool(true)
bool(false)
bool(false)
|