-
-
Notifications
You must be signed in to change notification settings - Fork 741
Closed
rectorphp/rector-src
#6765Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | last dev-main |
| Installed as | composer dependency |
Minimal PHP Code Causing Issue
See https://getrector.com/demo/2919d329-78da-4c85-a82e-80f44b1906fa
<?php
final class DemoFile
{
private int $sum {
get => $this->a + $this->b;
}
public function __construct(
private readonly int $a,
private readonly int $b,
) {}
public function getSum(): int
{
return $this->sum;
}
}Responsible rules
RemoveUnusedPromotedPropertyRector
Expected Behavior
Properties $a and $b used in property hook $sum
Reactions are currently unavailable