Bug Report
| Subject |
Details |
| Rector version |
last dev-main |
| Installed as |
composer dependency |
Minimal PHP Code Causing Issue
See https://getrector.com/demo/97530d52-c91e-4dec-96e8-5e9dbd66e9c1
<?php
final class DemoFile extends UnkownClass
{
public function __construct(private readonly string $property)
{
}
public function run()
{
echo $this->property;
}
}
Responsible rules
Expected Behavior
If a parent class cannot be resolved by rector ReadOnlyClassRectorshould skipped, because it cannot be determined if the parent class is declared as readonly.
I am not sure why the class can't be resolved. I noticed this in controllers extending from AbstractFOSRestController.
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/97530d52-c91e-4dec-96e8-5e9dbd66e9c1
Responsible rules
ReadOnlyClassRectorExpected Behavior
If a parent class cannot be resolved by rector
ReadOnlyClassRectorshould skipped, because it cannot be determined if the parent class is declared as readonly.I am not sure why the class can't be resolved. I noticed this in controllers extending from AbstractFOSRestController.