1--TEST--
2GH-15438: Untyped promoted, hooked properties with no default value default to null
3--FILE--
4<?php
5
6class C {
7    public function __construct(
8        public $prop { set => $value * 2; }
9    ) {}
10}
11
12$c = new ReflectionClass(C::class)->newInstanceWithoutConstructor();
13var_dump($c);
14
15?>
16--EXPECTF--
17object(C)#%d (1) {
18  ["prop"]=>
19  NULL
20}
21