1--TEST--
2set shorthand
3--FILE--
4<?php
5
6class Test {
7    public string $prop {
8        set => strtoupper($value);
9    }
10}
11
12$test = new Test();
13$test->prop = 'foo';
14var_dump($test);
15
16?>
17--EXPECT--
18object(Test)#1 (1) {
19  ["prop"]=>
20  string(3) "FOO"
21}
22