From fa44eefea6944c46e4d3f204616344b33a3db260 Mon Sep 17 00:00:00 2001 From: Thomas Roberts Date: Tue, 31 Oct 2023 13:17:47 +0000 Subject: [PATCH] Ignore lint error in Notices.php - hook with args --- src/Domain/Services/Notices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Domain/Services/Notices.php b/src/Domain/Services/Notices.php index 6b7be99344f..6a17c0fb375 100644 --- a/src/Domain/Services/Notices.php +++ b/src/Domain/Services/Notices.php @@ -94,7 +94,7 @@ public function add_kses_notice_allowed_tags( $allowed_tags ) { * @param string $default_path Default path. * @return string */ - public function get_notices_template( $template, $template_name, $args, $template_path, $default_path ) { + public function get_notices_template( $template, $template_name, $args, $template_path, $default_path ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed -- Ignoring because those parameters passed by the filter. if ( in_array( $template_name, $this->notice_templates, true ) ) { $template = $this->package->get_path( 'templates/' . $template_name ); wp_enqueue_style( 'wc-blocks-style' );