1--TEST--
2Test typed properties inherit traits with typed properties
3--FILE--
4<?php
5trait Foo{
6    private int $baz;
7}
8
9class Baz{
10    use Foo;
11
12    function get(){
13        return $this->baz;
14    }
15}
16
17var_dump((new Baz)->get());
18--EXPECTF--
19Fatal error: Uncaught Error: Typed property Baz::$baz must not be accessed before initialization in %s:10
20Stack trace:
21#0 %s(14): Baz->get()
22#1 {main}
23  thrown in %s on line 10
24