Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alexookah committed Jul 29, 2024
1 parent e0f4a4d commit 5f243cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-woocommerce-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public static function woographql_stripe_gateway_args( $gateway_args, $payment_m
* the `WC_Email_Customer_Reset_Password` email is not enabled.
*/
public static function get_reset_password_message( $message, $key, $user_login ) {
$wc_reset_email = \WC()->mailer()->emails['WC_Email_Customer_Reset_Password'];
$wc_reset_email = \WC_Email_Customer_Reset_Password();

Check failure on line 168 in includes/class-woocommerce-filters.php

View workflow job for this annotation

GitHub Actions / Testing WooGraphQL code quality w/ PHPStan

Function WC_Email_Customer_Reset_Password not found.
if ( $wc_reset_email && $wc_reset_email->is_enabled() ) {
add_filter( 'wp_mail_content_type', [ $wc_reset_email, 'get_content_type' ] );

Check failure on line 170 in includes/class-woocommerce-filters.php

View workflow job for this annotation

GitHub Actions / Testing WooGraphQL code quality w/ PHPStan

Parameter #2 $callback of function add_filter expects callable(): mixed, array{mixed, 'get_content_type'} given.

Expand All @@ -190,7 +190,7 @@ public static function get_reset_password_message( $message, $key, $user_login )
* the `WC_Email_Customer_Reset_Password` email is not enabled.
*/
public static function get_reset_password_title( $title ) {
$wc_reset_email = \WC()->mailer()->emails['WC_Email_Customer_Reset_Password'];
$wc_reset_email = \WC_Email_Customer_Reset_Password();

Check failure on line 193 in includes/class-woocommerce-filters.php

View workflow job for this annotation

GitHub Actions / Testing WooGraphQL code quality w/ PHPStan

Function WC_Email_Customer_Reset_Password not found.
return $wc_reset_email->is_enabled() ? $wc_reset_email->get_subject() : $title;
}
}

0 comments on commit 5f243cd

Please sign in to comment.