Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Ignore lint error in Notices.php - hook with args
Browse files Browse the repository at this point in the history
  • Loading branch information
opr committed Oct 31, 2023
1 parent 4c802f5 commit fa44eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domain/Services/Notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit fa44eef

Please sign in to comment.