mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-15 07:48:42 +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;
|
$bestPriceValue = \PHP_INT_MAX;
|
||||||
|
|
||||||
foreach ($prices as $price) {
|
foreach ($prices as $price) {
|
||||||
$newPrice = $bestBasePrice->price->value;
|
$newPrice = $bestBasePrice?->price->value ?? \PHP_INT_MAX;
|
||||||
|
|
||||||
if ($price->price->value < $newPrice) {
|
if ($price->price->value < $newPrice) {
|
||||||
$newPrice = $price->price->value;
|
$newPrice = $price->price->value;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user