Skip to content

Commit 176e4c3

Browse files
3m1n3nc3HPWebdeveloper
authored andcommitted
Type $walletsInOrder in HandlesPayment's pay() method
1 parent c6dbb69 commit 176e4c3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Traits/HandlesPayment.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public function pay(int|float $orderValue, ?string $notes = null): void
2525
DB::transaction(function () use ($orderValue, $notes) {
2626
$remainingOrderValue = $orderValue;
2727

28+
/**
29+
* @var \Illuminate\Support\Collection<TKey, \HPWebdeveloper\LaravelPayPocket\Models
30+
* |\HPWebdeveloper\LaravelPayPocket\Traits\BalanceOperation> $walletsInOrder
31+
*/
2832
$walletsInOrder = $this->wallets()->whereIn('type', $this->walletsInOrder())->get();
2933

3034
foreach ($walletsInOrder as $wallet) {
@@ -46,4 +50,4 @@ public function pay(int|float $orderValue, ?string $notes = null): void
4650
}
4751
});
4852
}
49-
}
53+
}

0 commit comments

Comments
 (0)