From 94403140428a559511171039b7b2e514cab9107d Mon Sep 17 00:00:00 2001 From: davidperezgar Date: Fri, 6 Dec 2024 11:13:06 +0100 Subject: [PATCH] fix phplint --- includes/Checker/Checks/General/I18n_Usage_Check.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Checker/Checks/General/I18n_Usage_Check.php b/includes/Checker/Checks/General/I18n_Usage_Check.php index f7200f30..3678c375 100644 --- a/includes/Checker/Checks/General/I18n_Usage_Check.php +++ b/includes/Checker/Checks/General/I18n_Usage_Check.php @@ -99,7 +99,7 @@ public function get_documentation_url(): string { */ protected function add_result_message_for_file( Check_Result $result, $error, $message, $code, $file, $line = 0, $column = 0, string $docs = '', $severity = 5 ) { // Downgrade errors about usage of the 'default' text domain from WordPress Core to warnings. - if ( $error && str_ends_with( $message, " but got 'default'." ) ) { + if ( $error && str_ends_with( $message, ' but got 'default'.' ) ) { $error = false; }