1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 08:42:29 +01:00
Files
archived-php-src/tests/classes/interface_optional_arg.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02:00

25 lines
303 B
PHP

--TEST--
ZE2 An interface method allows additional default arguments
--FILE--
<?php
error_reporting(4095);
interface test {
public function bar();
}
class foo implements test {
public function bar($foo = NULL) {
echo "foo\n";
}
}
$foo = new foo;
$foo->bar();
?>
--EXPECT--
foo