mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
fix Psalm tests
This commit is contained in:
parent
e8c59d98b4
commit
77e8714877
2 changed files with 3 additions and 2 deletions
|
@ -1937,6 +1937,7 @@ return array(
|
|||
'wcgateway.enabled-ppcp-gateways' => static function ( ContainerInterface $container ): array {
|
||||
$available_gateways = WC()->payment_gateways->get_available_payment_gateways();
|
||||
$ppcp_gateways = $container->get( 'wcgateway.ppcp-gateways' );
|
||||
$enabled_ppcp_gateways = array();
|
||||
|
||||
foreach ( $ppcp_gateways as $gateway ) {
|
||||
if ( ! isset( $available_gateways[ $gateway ] ) ) {
|
||||
|
@ -1945,7 +1946,7 @@ return array(
|
|||
$enabled_ppcp_gateways[] = $gateway;
|
||||
}
|
||||
|
||||
return $enabled_ppcp_gateways ?? array();
|
||||
return $enabled_ppcp_gateways;
|
||||
},
|
||||
'wcgateway.is-paypal-continuation' => static function ( ContainerInterface $container ): bool {
|
||||
$session_handler = $container->get( 'session.handler' );
|
||||
|
|
|
@ -111,7 +111,7 @@ class FraudNetAssets {
|
|||
/**
|
||||
* Registers FraudNet assets.
|
||||
*/
|
||||
public function register_assets() {
|
||||
public function register_assets(): void {
|
||||
add_action(
|
||||
'wp_enqueue_scripts',
|
||||
function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue