1--TEST--
2ReflectionParameter::isVariadic()
3--FILE--
4<?php
5
6function test1($args) {}
7function test2(...$args) {}
8function test3($arg, ...$args) {}
9
10$r1 = new ReflectionFunction('test1');
11$r2 = new ReflectionFunction('test2');
12$r3 = new ReflectionFunction('test3');
13
14var_dump($r1->getParameters()[0]->isVariadic());
15var_dump($r2->getParameters()[0]->isVariadic());
16var_dump($r3->getParameters()[0]->isVariadic());
17var_dump($r3->getParameters()[1]->isVariadic());
18
19?>
20--EXPECT--
21bool(false)
22bool(true)
23bool(false)
24bool(true)
25