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
Coding standard can't be used for this purpose as it's unable to analyze code from a different file.
The main problem is that the rule can't ignore unused parameters that belong to the function definition inherited from parent methods or an interface. For example, in Symfony form, parameter $options is often unused, the rule will report it as unused. Although we can use phpcs:ignore to ignore this warning, it will add unnecessary technical debt.
Coding standard can't be used for this purpose as it's unable to analyze code from a different file.
The main problem is that the rule can't ignore unused parameters that belong to the function definition inherited from parent methods or an interface. For example, in Symfony form, parameter
$options
is often unused, the rule will report it as unused. Although we can usephpcs:ignore
to ignore this warning, it will add unnecessary technical debt.We can use static analyzer for this task. See, for example, phpstan/phpstan#3031
The text was updated successfully, but these errors were encountered: