-
-
Notifications
You must be signed in to change notification settings - Fork 741
Closed
rectorphp/rector-src
#3839Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | v0.15.7+ |
| Installed as | composer dependency |
Minimal PHP Code Causing Issue
Tested with 0.15.7, 0.15.10 (different projects) and online.
See https://getrector.com/demo/bfd6ec7c-7c61-46b0-8915-967c4cc0b646
<?php
#[Route('/statistiken/bundesland', name: AdminRoutes::STATISTICS_IMMOBILIE_BUNDESLAND)]
final class BundeslandStatisticsController
{
public function __construct(
private readonly Responder $responder,
private readonly RepositoryInterface $repository,
) {
}
}As you can see it inlines my annotation and class-spec.
Responsible rules
ReadOnlyClassRector
Expected Behavior
Rector should add readonly to this class, but respect the newline before final class.
Reactions are currently unavailable