diff --git a/src/Testing/Doubles/FakePayment.php b/src/Testing/Doubles/FakePayment.php index 84470dd..5a011bd 100644 --- a/src/Testing/Doubles/FakePayment.php +++ b/src/Testing/Doubles/FakePayment.php @@ -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);