mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-02-16 14:18:41 +00:00
fix phpstan bug regarding implicit isset checks
This commit is contained in:
parent
04ac7fc92d
commit
111fe51d11
|
|
@ -153,8 +153,12 @@ final class ApiController extends Controller
|
||||||
|
|
||||||
// Handle to
|
// Handle to
|
||||||
if (($bill->client?->id ?? 0) !== 0) {
|
if (($bill->client?->id ?? 0) !== 0) {
|
||||||
|
// @todo: remove phpstan this is just a bug fix until phpstan fixes this bug
|
||||||
|
/** @phpstan-ignore-next-line */
|
||||||
$transaction->to = $bill->client->id;
|
$transaction->to = $bill->client->id;
|
||||||
} elseif (($bill->supplier?->id ?? 0) !== 0) {
|
} elseif (($bill->supplier?->id ?? 0) !== 0) {
|
||||||
|
// @todo: remove phpstan this is just a bug fix until phpstan fixes this bug
|
||||||
|
/** @phpstan-ignore-next-line */
|
||||||
$transaction->to = $bill->supplier->id;
|
$transaction->to = $bill->supplier->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -166,8 +170,12 @@ final class ApiController extends Controller
|
||||||
} else {
|
} else {
|
||||||
// Handle from
|
// Handle from
|
||||||
if (($bill->client?->id ?? 0) !== 0) {
|
if (($bill->client?->id ?? 0) !== 0) {
|
||||||
|
// @todo: remove phpstan this is just a bug fix until phpstan fixes this bug
|
||||||
|
/** @phpstan-ignore-next-line */
|
||||||
$transaction->from = $bill->client->id;
|
$transaction->from = $bill->client->id;
|
||||||
} elseif (($bill->supplier?->id ?? 0) !== 0) {
|
} elseif (($bill->supplier?->id ?? 0) !== 0) {
|
||||||
|
// @todo: remove phpstan this is just a bug fix until phpstan fixes this bug
|
||||||
|
/** @phpstan-ignore-next-line */
|
||||||
$transaction->from = $bill->supplier->id;
|
$transaction->from = $bill->supplier->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user