1--TEST--
2Constructor promotion can be used inside a trait
3--FILE--
4<?php
5
6trait Test {
7 public function __construct(public $prop) {}
8}
9
10class Test2 {
11 use Test;
12}
13
14var_dump(new Test2(42));
15
16?>
17--EXPECT--
18object(Test2)#1 (1) {
19 ["prop"]=>
20 int(42)
21}
22