summaryrefslogtreecommitdiff
path: root/Zend/tests/variadic/removing_parameter_error.phpt
blob: 0c66c1547d39ed0ef67da134ea0cecfd0d64869b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
It is possible to remove required parameter before a variadic parameter
--FILE--
<?php

interface DB {
    public function query($query, ...$params);
}

class MySQL implements DB {
    public function query(...$params) { }
}

?>
===DONE===
--EXPECT--
===DONE===