Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove return type AdjustmentInterface #978

Merged
merged 1 commit into from
May 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/CoreShop/Component/Order/Factory/AdjustmentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

namespace CoreShop\Component\Order\Factory;

use CoreShop\Component\Order\Model\AdjustmentInterface;
use CoreShop\Component\Resource\Factory\FactoryInterface;

class AdjustmentFactory implements AdjustmentFactoryInterface
Expand All @@ -33,7 +32,7 @@ public function __construct(FactoryInterface $adjustmentFactory)
/**
* {@inheritdoc}
*/
public function createNew(): AdjustmentInterface
public function createNew()
{
return $this->adjustmentFactory->createNew();
}
Expand Down
3 changes: 1 addition & 2 deletions src/CoreShop/Component/Order/Factory/CartItemFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

namespace CoreShop\Component\Order\Factory;

use CoreShop\Component\Order\Model\AdjustmentInterface;
use CoreShop\Component\Order\Model\CartInterface;
use CoreShop\Component\Order\Model\PurchasableInterface;
use CoreShop\Component\Resource\Factory\FactoryInterface;
Expand All @@ -35,7 +34,7 @@ public function __construct(FactoryInterface $cartItemFactory)
/**
* {@inheritdoc}
*/
public function createNew(): AdjustmentInterface
public function createNew()
{
return $this->cartItemFactory->createNew();
}
Expand Down