Closed
Description
Description
The following code:
class C {
public function __construct(
$prop { set => $value * 2; },
) {}
}
$c = new C(42);
var_dump($c);
Resulted in this output:
object(C)#1 (0) {
}
But I expected this output instead:
object(C)#1 (1) {
["prop"]=>
int(84)
}
Or compile error
PHP Version
master
Operating System
No response