mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Fix psalm
This commit is contained in:
parent
22ba368ba1
commit
6d52f39ad0
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class UserIdToken {
|
|||
* @throws RuntimeException If something unexpected happens.
|
||||
*/
|
||||
public function id_token( string $target_customer_id = '' ): string {
|
||||
$session_customer_id = WC()->session->get_customer_id() ?? '';
|
||||
$session_customer_id = WC()->session->get_customer_id() ?: '';
|
||||
if ( $session_customer_id && $this->cache->has( self::CACHE_KEY . (string) $session_customer_id ) ) {
|
||||
return $this->cache->get( self::CACHE_KEY . (string) $session_customer_id );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue