mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix psalm errors
This commit is contained in:
parent
2f78bab9ca
commit
e9e650da79
1 changed files with 3 additions and 2 deletions
|
@ -38,8 +38,9 @@ class CustomerRepository {
|
|||
*/
|
||||
public function customer_id_for_user( int $user_id ): string {
|
||||
if ( 0 === $user_id ) {
|
||||
if ( WC()->session->get( 'ppcp_guest_customer_id' ) ) {
|
||||
return WC()->session->get( 'ppcp_guest_customer_id' );
|
||||
$guest_customer_id = WC()->session->get( 'ppcp_guest_customer_id' );
|
||||
if ( is_string( $guest_customer_id ) && $guest_customer_id ) {
|
||||
return $guest_customer_id;
|
||||
}
|
||||
|
||||
$unique_id = $this->prefix . uniqid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue