xref: /PHP-8.3/Zend/tests/traits/bug65576a.phpt (revision 7aacc705)
1--TEST--
2Bug #65576 (Constructor from trait conflicts with inherited constructor)
3--FILE--
4<?php
5
6trait T
7{
8  public function __construct()
9  {
10    echo "Trait constructor\n";
11  }
12}
13
14class A
15{
16  public function __construct()
17  {
18    echo "Parent constructor\n";
19  }
20}
21
22class B extends A
23{
24  use T;
25}
26
27new B();
28?>
29--EXPECT--
30Trait constructor
31