Skip to content

Commit

Permalink
Make sure we have (array) on the return of the filter.
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Herman <[email protected]>
  • Loading branch information
bordoni and EvanHerman authored Nov 15, 2023
1 parent 95cb92e commit 2bc6f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/readme.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function check_for_warnings() {
* @param array $ignored_warnings Array of ignored warning keys.
* @param Parser $readme The readme object.
*/
$ignored_warnings = apply_filters( 'plugin_check_readme_warnings_ignored', $ignored_warnings, $this->readme );
$ignored_warnings = (array) apply_filters( 'plugin_check_readme_warnings_ignored', $ignored_warnings, $this->readme );

$warning_keys = array_diff( $warning_keys, $ignored_warnings );

Expand Down

0 comments on commit 2bc6f94

Please sign in to comment.