OP-289: On-hold&on-hand handling #443
Annotations
10 errors and 1 warning
Run PHPStan:
src/Inventory/Operator/OrderInventoryOperator.php#L95
Cannot call method isTracked() on Sylius\Component\Core\Model\ProductVariantInterface|null.
|
Run PHPStan:
src/Inventory/Operator/OrderInventoryOperator.php#L99
Cannot call method getOnHold() on Sylius\Component\Core\Model\ProductVariantInterface|null.
|
Run PHPStan:
src/Inventory/Operator/OrderInventoryOperator.php#L99
Only numeric types are allowed in -, int|null given on the left side.
|
Run PHPStan:
src/Inventory/Operator/OrderInventoryOperator.php#L100
Cannot call method getName() on Sylius\Component\Core\Model\ProductVariantInterface|null.
|
Run PHPStan:
src/Inventory/Operator/OrderInventoryOperator.php#L100
Parameter #1 $variantName of class Sylius\Component\Core\Inventory\Exception\NotEnoughUnitsOnHoldException constructor expects string, string|null given.
|
Run PHPStan:
src/Inventory/Operator/OrderInventoryOperator.php#L103
Cannot call method getOnHold() on Sylius\Component\Core\Model\ProductVariantInterface|null.
|
Run PHPStan:
src/Inventory/Operator/OrderInventoryOperator.php#L103
Cannot call method setOnHold() on Sylius\Component\Core\Model\ProductVariantInterface|null.
|
Run PHPStan:
src/Inventory/Operator/OrderInventoryOperator.php#L103
Only numeric types are allowed in -, int|null given on the left side.
|
Run PHPStan:
src/Inventory/Operator/OrderInventoryOperator.php#L114
Cannot call method isTracked() on Sylius\Component\Core\Model\ProductVariantInterface|null.
|
Run PHPStan:
src/Inventory/Operator/OrderInventoryOperator.php#L118
Cannot call method getOnHand() on Sylius\Component\Core\Model\ProductVariantInterface|null.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading