1--TEST--
2Accessing property from hook does not call magic method
3--FILE--
4<?php
5
6class Test {
7    public $prop {
8        get => $this->prop;
9        set => $value;
10    }
11
12    public function __get($name) {
13        echo __METHOD__, "\n";
14        return 42;
15    }
16
17    public function __set($name, $value) {
18        echo __METHOD__, "\n";
19    }
20}
21
22$test = new Test;
23var_dump($test->prop);
24$test->prop = 42;
25var_dump($test->prop);
26
27?>
28--EXPECT--
29NULL
30int(42)
31