Skip to content

Commit f065ce6

Browse files
committed
Remove unnecessary string casting
1 parent ca4a1c7 commit f065ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/optimization-detective/optimization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function od_print_disabled_reasons( array $reasons ): void {
122122
wp_print_inline_script_tag(
123123
sprintf(
124124
'console.info( %s );',
125-
(string) wp_json_encode( '[Optimization Detective] ' . $reason )
125+
wp_json_encode( '[Optimization Detective] ' . $reason )
126126
),
127127
array( 'type' => 'module' )
128128
);

0 commit comments

Comments
 (0)