fix Psalm tests

This commit is contained in:
Narek Zakarian 2022-11-29 20:00:47 +04:00
parent e8c59d98b4
commit 77e8714877
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
2 changed files with 3 additions and 2 deletions

View file

@ -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' );