Commit 9dcd9a1
committed
Fix duplicate registration of RepositoryMethodCallRule
RepositoryMethodCallRule was registered twice: once in the `rules:`
section (autowired with checkOrderByFields defaulting to false) and
again as a tagged service in `services:` wiring
checkOrderByFields to the bleedingEdge feature toggle.
Both registrations carry the phpstan.rules.rule tag, so the rule
executed twice and reported every magic findBy*/findOneBy* violation
as a duplicate.
Keep only the `services:` registration, which is the intended one as
it wires the checkOrderByFields toggle introduced together with the
duplicate.
Co-Authored-By: Claude Code1 parent 5485522 commit 9dcd9a1
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
0 commit comments