Skip to content

Commit 119c991

Browse files
petitphpswissspidy
authored andcommitted
use string interpolation for building message
Co-authored-by: Pascal Birchler <[email protected]>
1 parent 3fa7fe1 commit 119c991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cache_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public function pluck( $args, $assoc_args ) {
444444
$value = wp_cache_get( $key, $group );
445445

446446
if ( false === $value ) {
447-
WP_CLI::warning( 'No object found for the key "' . $key . '" in group "' . $group . '"' );
447+
WP_CLI::warning( "No object found for the key '$key' in group '$group'" );
448448
exit;
449449
}
450450

0 commit comments

Comments
 (0)