18 lines
325 B
Plaintext
18 lines
325 B
Plaintext
|
|
--TEST--
|
||
|
|
It's possible to add additional optional arguments with matching signature
|
||
|
|
--FILE--
|
||
|
|
<?php
|
||
|
|
|
||
|
|
interface DB {
|
||
|
|
public function query($query, string ...$params);
|
||
|
|
}
|
||
|
|
|
||
|
|
class MySQL implements DB {
|
||
|
|
public function query($query, ?string $extraParam = null, string ...$params) { }
|
||
|
|
}
|
||
|
|
|
||
|
|
?>
|
||
|
|
===DONE===
|
||
|
|
--EXPECTF--
|
||
|
|
===DONE===
|