Skip to content

Commit

Permalink
Fix with refunds method on fake payment
Browse files Browse the repository at this point in the history
  • Loading branch information
ppelgrims committed Jun 7, 2024
1 parent ae48634 commit 8868ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Testing/Doubles/FakePayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function withStatus(string $status = ''): self

public function withRefunds(FakeRefund ...$refunds): self
{
$refunds ??= [FakeRefund::fake($this->container)];
$refunds = $refunds ?: [FakeRefund::fake($this->container)];

$this->refunds = array_merge($this->refunds, $refunds);

Expand Down

0 comments on commit 8868ac7

Please sign in to comment.