Skip to content

Commit

Permalink
Fix deprecation notice in PHP 8.2 (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber authored Mar 15, 2023
1 parent 13e64bc commit e4190a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function( $check ) {
$should_error = ! empty( $results_with_error );
if ( $should_error && 'table' === $assoc_args['format'] ) {
$check_count = count( $results_with_error );
$error_message = 1 === $check_count ? "1 check reports 'error'." : "${check_count} checks report 'error'.";
$error_message = 1 === $check_count ? "1 check reports 'error'." : sprintf( "%d checks report 'error'.", $check_count );
} else {
$error_message = null;
}
Expand Down

0 comments on commit e4190a5

Please sign in to comment.