php-src/Zend/tests/traits/bug74607a.phpt
2018-10-14 12:07:20 -03:00

23 lines
267 B
PHP

--TEST--
Bug #74607 (Traits enforce different inheritance rules - number of required parameters)
--FILE--
<?php
abstract class L1{
abstract function m3($x);
}
trait L2t{
function m3($x, $y = 0){}
}
class L2 extends L1{
use L2t;
}
echo "DONE";
?>
--EXPECT--
DONE