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
Add a PHPStan rule to ensure a docblock is present before the usage of wpm_apply_filters_typed(). The rule should also verify that the types declared in the docblock match the types of parameters passed to the filter.
Justification: Code Quality: Ensures that all usages of wpm_apply_filters_typed() are well-documented, improving code readability and maintainability. Type Safety: Verifies that the declared types in the docblock align with the actual parameters, reducing the risk of type-related errors.
Making sure that the following example is the template followed:
Add a PHPStan rule to ensure a docblock is present before the usage of
wpm_apply_filters_typed()
. The rule should also verify that the types declared in the docblock match the types of parameters passed to the filter.Justification:
Code Quality: Ensures that all usages of
wpm_apply_filters_typed()
are well-documented, improving code readability and maintainability.Type Safety: Verifies that the declared types in the docblock align with the actual parameters, reducing the risk of type-related errors.
Making sure that the following example is the template followed:
The text was updated successfully, but these errors were encountered: