mirror of
https://github.com/php/php-src.git
synced 2024-12-18 22:41:20 +08:00
23 lines
267 B
PHP
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
|