Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 0d6fc54

Browse files
committed
WIP: fix type hint on cart actions
1 parent 8539367 commit 0d6fc54

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Core/Request/Carts/Command/CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace Commercetools\Core\Request\Carts\Command;
77

88
use Commercetools\Core\Model\Cart\ItemShippingTargetCollection;
9+
use Commercetools\Core\Model\Common\Context;
910
use Commercetools\Core\Request\AbstractAction;
1011

1112
/**
@@ -39,7 +40,7 @@ public function fieldDefinitions()
3940
* @param array $data
4041
* @param Context|callable $context
4142
*/
42-
public function __construct(array $data = [], $context = null)
43+
public function __construct(array $data = [], Context $context = null)
4344
{
4445
parent::__construct($data, $context);
4546
$this->setAction('applyDeltaToCustomLineItemShippingDetailsTargets');

src/Core/Request/Carts/Command/CartApplyDeltaToLineItemShippingDetailsTargetsAction.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace Commercetools\Core\Request\Carts\Command;
77

88
use Commercetools\Core\Model\Cart\ItemShippingTargetCollection;
9+
use Commercetools\Core\Model\Common\Context;
910
use Commercetools\Core\Request\AbstractAction;
1011

1112
/**
@@ -35,7 +36,7 @@ public function fieldDefinitions()
3536
* @param array $data
3637
* @param Context|callable $context
3738
*/
38-
public function __construct(array $data = [], $context = null)
39+
public function __construct(array $data = [], Context $context = null)
3940
{
4041
parent::__construct($data, $context);
4142
$this->setAction('applyDeltaToLineItemShippingDetailsTargets');

0 commit comments

Comments
 (0)