From 2bc6f94f5851f93f3dec22c9bb679cfccb54acdb Mon Sep 17 00:00:00 2001 From: Gustavo Bordoni Date: Wed, 15 Nov 2023 15:29:23 -0500 Subject: [PATCH] Make sure we have (array) on the return of the filter. Co-authored-by: Evan Herman --- checks/readme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/readme.php b/checks/readme.php index 0784dd5bb..0fd3e2a9c 100644 --- a/checks/readme.php +++ b/checks/readme.php @@ -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 );