Closed as not planned
Description
Description
The following code:
<?php
class Test {
public int $x;
}
const test = new Test();
test->x = 1;
Resulted in this output:
Fatal error: Cannot use temporary expression in write context
https://3v4l.org/BmtTZ
PHP Version
PHP 8.1 - 8.2
Operating System
No response