mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
19c0335609
This reverts commit 2c8e4ba8f1
.
19 lines
282 B
PHP
19 lines
282 B
PHP
--TEST--
|
|
Bug #72119 (Interface declaration compatibility regression with default values)
|
|
--FILE--
|
|
<?php
|
|
interface Foo {
|
|
public function bar(array $baz = null);
|
|
}
|
|
|
|
class Hello implements Foo {
|
|
public function bar(array $baz = [])
|
|
{
|
|
|
|
}
|
|
}
|
|
echo "OK\n";
|
|
?>
|
|
--EXPECT--
|
|
OK
|