1--TEST--
2ReflectionFunction::isVariadic()
3--FILE--
4<?php
5
6function test1($args) {}
7function test2(...$args) {}
8function test3($arg, ...$args) {}
9
10var_dump((new ReflectionFunction('test1'))->isVariadic());
11var_dump((new ReflectionFunction('test2'))->isVariadic());
12var_dump((new ReflectionFunction('test3'))->isVariadic());
13
14?>
15--EXPECT--
16bool(false)
17bool(true)
18bool(true)
19