Bug report
Since PHP 8.3, it is allowed to reinitialize a readonly property in __clone. Currently PHPStan gives the error "Readonly property HelloWorld::$foo is assigned outside of the constructor"
Reference: https://wiki.php.net/rfc/readonly_amendments
Code snippet that reproduces the problem
https://phpstan.org/r/c465fe8e-828a-41d0-977d-d20c6b51afb4
Expected output
no phpstan warning produced as the code is valid in 8.3
Did PHPStan help you today? Did it make you happy in any way?
No response
Bug report
Since PHP 8.3, it is allowed to reinitialize a
readonlyproperty in__clone. Currently PHPStan gives the error "Readonly property HelloWorld::$foo is assigned outside of the constructor"Reference: https://wiki.php.net/rfc/readonly_amendments
Code snippet that reproduces the problem
https://phpstan.org/r/c465fe8e-828a-41d0-977d-d20c6b51afb4
Expected output
no phpstan warning produced as the code is valid in 8.3
Did PHPStan help you today? Did it make you happy in any way?
No response