Skip to content

[5.1] Custom line items (non-purchasable dependent) #1888

[5.1] Custom line items (non-purchasable dependent)

[5.1] Custom line items (non-purchasable dependent) #1888

Triggered via pull request June 19, 2024 07:19
Status Failure
Total duration 1m 4s
Artifacts

ci.yml

on: pull_request
ci  /  ...  /  ECS
23s
ci / Code Quality / ECS / ECS
ci  /  ...  /  PHPStan
50s
ci / Code Quality / PHPStan / PHPStan
ci  /  ...  /  check
17s
ci / Code Quality / Prettier / check
Matrix: ci / Tests / tests
Waiting for pending jobs
ci  /  ...  /  on cancelled
ci / Notify Slack / on cancelled
ci  /  ...  /  on failure
ci / Notify Slack / on failure
ci  /  ...  /  on success
ci / Notify Slack / on success
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 5 warnings
ci / Code Quality / PHPStan / PHPStan: src/controllers/SalesController.php#L323
Parameter #1 $purchasable of method craft\commerce\services\Sales::getSalesRelatedToPurchasable() expects craft\commerce\base\PurchasableInterface, craft\base\ElementInterface given.
ci / Code Quality / PHPStan / PHPStan: src/elements/Product.php#L899
Method craft\commerce\elements\Product::getDefaultVariant() should return craft\commerce\elements\Variant|null but returns craft\base\ElementInterface|null.
ci / Code Quality / PHPStan / PHPStan: src/elements/Product.php#L930
Parameter #1 $callback of method Illuminate\Support\Collection<(int|string),craft\base\ElementInterface>::filter() expects (callable(craft\base\ElementInterface, int|string): bool)|null, Closure(craft\commerce\elements\Variant): bool given.
ci / Code Quality / PHPStan / PHPStan: src/elements/Product.php#L1007
Call to an undefined method craft\base\ElementInterface::getStock().
ci / Code Quality / PHPStan / PHPStan: src/elements/Product.php#L1022
Access to an undefined property craft\base\ElementInterface::$inventoryTracked.
ci / Code Quality / PHPStan / PHPStan: src/elements/Product.php#L1213
Access to an undefined property craft\base\ElementInterface::$sku.
ci / Code Quality / PHPStan / PHPStan: src/elements/Product.php#L1264
Access to an undefined property craft\base\ElementInterface::$sku.
ci / Code Quality / PHPStan / PHPStan: src/elements/Product.php#L1268
Access to an undefined property craft\base\ElementInterface::$sku.
ci / Code Quality / PHPStan / PHPStan: src/elements/Product.php#L1444
Call to an undefined method craft\base\ElementInterface::getStock().
ci / Code Quality / PHPStan / PHPStan: src/elements/Product.php#L1445
Access to an undefined property craft\base\ElementInterface::$inventoryTracked.
ci / Code Quality / Prettier / check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ci / Code Quality / ECS / ECS
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ci / Code Quality / PHPStan / PHPStan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, andstor/file-existence-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ci / Code Quality / PHPStan / PHPStan
The following actions uses node12 which is deprecated and will be forced to run on node16: andstor/file-existence-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
ci / Code Quality / PHPStan / PHPStan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/