Skip to content

Commit

Permalink
Update TestGateway.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dena-a authored Jun 7, 2023
1 parent 8f1f85d commit 98b670b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateways/Test/TestGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function purchaseUri(): string
$url_parts['query'] = http_build_query($params);

return $url_parts['scheme'].'://'.$url_parts['host']
.(strlen($url_parts['port']) ? ':'.$url_parts['port'] : '')
.(isset($url_parts['port']) && strlen($url_parts['port']) ? ':'.$url_parts['port'] : '')
.$url_parts['path']
.(strlen($url_parts['query']) ? '?'.$url_parts['query'] : '');
}
Expand Down

0 comments on commit 98b670b

Please sign in to comment.