1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/traits/abstract_method_2.phpt

23 lines
325 B
PHP

--TEST--
Mutually incompatible methods from traits are fine as long as the final method is compatible
--FILE--
<?php
trait T1 {
abstract public function test();
}
trait T2 {
abstract public function test(): int;
}
class C {
use T1, T2;
public function test(): int {}
}
?>
===DONE===
--EXPECT--
===DONE===