Your IP : 216.73.216.48


Current Path : /hdd/hdd21/main/php/php-7.3.1/Zend/tests/
Upload File :
Current File : //hdd/hdd21/main/php/php-7.3.1/Zend/tests/bug71414.phpt

--TEST--
Bug #71414 (Interface method override inherited method and implemented in a trait causes fatal error)
--FILE--
<?php
interface InterfaceY {
    public function z(): string;
}

trait TraitY {
    public function z(): string {
    }
}

class X {
    public function z() {
    }
}

class Y extends X implements InterfaceY {
    use TraitY;
}

echo "ok";
--EXPECT--
ok