1--TEST--
2Generated hooks in property promotion
3--FILE--
4<?php
5
6class Test {
7    public function __construct(
8        public $prop {
9            get { echo "get\n"; }
10            set { echo "set($value)\n"; }
11        },
12    ) {}
13}
14
15$test = new Test(42);
16echo $test->prop;
17
18?>
19--EXPECT--
20set(42)
21get
22