Skip to content

Commit

Permalink
fix phplint
Browse files Browse the repository at this point in the history
  • Loading branch information
davidperezgar committed Dec 6, 2024
1 parent 2ce79b0 commit 9440314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Checker/Checks/General/I18n_Usage_Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'.' ) ) {

Check warning on line 102 in includes/Checker/Checks/General/I18n_Usage_Check.php

View check run for this annotation

Codecov / codecov/patch

includes/Checker/Checks/General/I18n_Usage_Check.php#L102

Added line #L102 was not covered by tests
$error = false;
}

Expand Down

0 comments on commit 9440314

Please sign in to comment.