Skip to content

Commit

Permalink
add type to method argument
Browse files Browse the repository at this point in the history
  • Loading branch information
felix.ruf committed Mar 11, 2025
1 parent d0ad642 commit b7447af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mealz/AccountingBundle/Service/PayPal/PayPalService.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ private function toPayPalOrder(Order $orderResp): PayPalOrder
*
* @throws RuntimeException
*/
private function toOrderAmount($purchaseUnits): float
private function toOrderAmount(array $purchaseUnits): float
{
if (!is_array($purchaseUnits) || !isset($purchaseUnits[0])) {
if (!isset($purchaseUnits[0])) {
throw new RuntimeException('invalid order response; purchase units not found');
}
if (!is_object($purchaseUnits[0]->getAmount())) {
Expand Down

0 comments on commit b7447af

Please sign in to comment.