Skip to content

Check typecasting of the value returned from a filter #38

@kagg-design

Description

@kagg-design

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions