You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file is one that is automatically generated, so it is skipped during normal Rector passes. However, this file is problematic for Rector. Rector just hangs processing this file and I haven't been able to work out why that is
you are right that this might get faster with the linked PR. the file is using function calls (gettext), so it won't benefit from the linked PR as it is not constant.
the file itself looks like it would not benefit from using phpstan/rector on it, therefore I think it should be put on the ignore path for both tools though
Activity
samsonasik commentedon Dec 9, 2022
Looking at your rector config, it seems you are using custom rector rule
https://github.com/pfsense/pfsense/blob/63a0efce7eb90ddea102e79a6750d4c19605f1cf/rector.php#L39
The bug may be in logic in your rule, you can debug with rector-debugging https://github.com/rectorphp/rector-debugging or other tools with
-vvvcommand.Also try using other existing rector rule, if the issue persist, that can be something todo:
samsonasik commentedon Dec 19, 2022
@staabm created PR on phpstan side for improve performance on huge array:
hopefully that will resolve it 👍
staabm commentedon Dec 19, 2022
you are right that this might get faster with the linked PR.the file is using function calls (gettext), so it won't benefit from the linked PR as it is not constant.the file itself looks like it would not benefit from using phpstan/rector on it, therefore I think it should be put on the ignore path for both tools though
samsonasik commentedon Dec 19, 2022
Ok 👍 , based on @staabm suggestion, ignore the file is the way to go, as the file itself is autogenerated.
I am closing it then ;)
github-actions commentedon Nov 1, 2026
This issue has been automatically locked because it has been closed for 150 days. Please open a new issue if you have a similar problem.