php-src/tests/classes/interface_optional_arg.phpt
2020-02-03 22:52:20 +01: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