xref: /PHP-8.1/Zend/tests/traits/bug74607.phpt (revision 782352c5)
1--TEST--
2Bug #74607 (Traits enforce different inheritance rules - return types)
3--FILE--
4<?php
5
6abstract class L1{
7abstract function m3($x);
8}
9
10trait L2t{
11function m3($x): int{}
12}
13
14class L2 extends L1{
15use L2t;
16}
17
18echo "DONE";
19
20?>
21--EXPECT--
22DONE
23