diff --git a/plugins/optimization-detective/class-od-html-tag-processor.php b/plugins/optimization-detective/class-od-html-tag-processor.php index 51afb4b4e5..4b41d2a864 100644 --- a/plugins/optimization-detective/class-od-html-tag-processor.php +++ b/plugins/optimization-detective/class-od-html-tag-processor.php @@ -625,10 +625,12 @@ public function get_updated_html(): string { * * @since 0.4.0 * - * @param callable-string $function_name Function name. - * @param string $message Warning message. + * @phpstan-param callable-string $function_name + * + * @param string $function_name Function name. + * @param string $message Warning message. */ - private function warn( callable $function_name, string $message ): void { + private function warn( string $function_name, string $message ): void { wp_trigger_error( $function_name, esc_html( $message )