Bug Report
| Subject |
Incorrect behaviour of InlineConstructorDefaultToPropertyRector |
| Rector version |
v0.15.2.3 |
The problem is that InlineConstructorDefaultToPropertyRector moves the value of the property to property declaration, which causes Fatal error: "static::" is not allowed in compile-time constants.
Minimal PHP Code Causing Issue
https://getrector.com/demo/7ce64c07-ecc3-4676-9e55-c68112ce63bf
Expected Behaviour
The expected behaviour for such cases - maybe leave this statement as it is.