mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-01-30 00:08:41 +00:00
test fixes
This commit is contained in:
parent
57a8593457
commit
5cc498cbb7
|
|
@ -178,7 +178,7 @@ final class ApiPriceController extends Controller
|
|||
$bestPriceValue = \PHP_INT_MAX;
|
||||
|
||||
foreach ($prices as $price) {
|
||||
$newPrice = $bestBasePrice->price->value;
|
||||
$newPrice = $bestBasePrice?->price->value ?? \PHP_INT_MAX;
|
||||
|
||||
if ($price->price->value < $newPrice) {
|
||||
$newPrice = $price->price->value;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user