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
{{ message }}
Repository navigation
"method unused" when overriding private methode of a trait #12201
Activity
adpeyre commentedon Dec 6, 2024
The simplified example works... I try to find the case which is an error.
Maybe when the trait is in package outside the project (in vendor) ? Is it possible ?
vjik commentedon Jan 8, 2025
I have same error.
PHPStan don't analyse trait from vendor, so show
method.unusederror.Asenar commentedon Sep 29, 2025
Hi,
The link in the result is marked as «no error» and «out of date», but the bug is still present
Here a demo with a simplified usage we can do in Symfony: https://phpstan.org/r/531b373b-93e4-4728-90c4-137561203581
Do not report a private method overriding a private trait method as u…
Do not report a private method overriding a private trait method as u…