Skip to content

Commit 226c2f3

Browse files
mmaymodanieldudzic
andauthored
Update modules/ppcp-store-sync/src/Endpoint/ReplaceCartEndpoint.php
Co-authored-by: Danny Dudzic <d.dudzic@syde.com>
1 parent 778f15d commit 226c2f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/ppcp-store-sync/src/Endpoint/ReplaceCartEndpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function replace_cart( WP_REST_Request $request ): WP_REST_Response {
132132
* @param PayPalCart $cart The new cart data.
133133
* @return bool True if a new token should be created.
134134
*/
135-
private function needs_new_token( string $existing_token, $cart ): bool {
135+
private function needs_new_token( string $existing_token, PayPalCart $cart ): bool {
136136
// Case 1: No existing token.
137137
if ( empty( $existing_token ) ) {
138138
// Only attempt to create if the cart is valid (no validation issues).

0 commit comments

Comments
 (0)