Open kagg-design opened 10 months ago
It is good to typecast at least the value returned from a filer. Example:
$array = (array) apply_filters( 'wpforms_some_filter', $array );
Having phpcs check such a typecasting would help make code robust and stable.
We do not have such a check.
Expected Behavior
It is good to typecast at least the value returned from a filer. Example:
$array = (array) apply_filters( 'wpforms_some_filter', $array );
Having phpcs check such a typecasting would help make code robust and stable.
Current Behavior
We do not have such a check.