xref: /PHP-7.4/Zend/tests/traits/bug65576a.phpt (revision d679f022)
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--EXPECT--
29Trait constructor
30