adding_additional_optional_parameter.phpt 323 B

1234567891011121314151617
  1. --TEST--
  2. It's possible to add additional optional arguments with matching signature
  3. --FILE--
  4. <?php
  5. interface DB {
  6. public function query($query, string ...$params);
  7. }
  8. class MySQL implements DB {
  9. public function query($query, string $extraParam = null, string ...$params) { }
  10. }
  11. ?>
  12. ===DONE===
  13. --EXPECT--
  14. ===DONE===