mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
17 lines
323 B
PHP
17 lines
323 B
PHP
--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===
|
|
--EXPECT--
|
|
===DONE===
|