mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

RFC: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types Co-authored-by: Gina Peter Banyard <girgias@php.net>
17 lines
325 B
PHP
17 lines
325 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===
|
|
--EXPECTF--
|
|
===DONE===
|