Skip to content

Commit

Permalink
Fix errors in CreditMemoRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
clem21 committed Jan 8, 2021
1 parent 4588c1a commit 1e2491e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Doctrine/ORM/CreditMemoRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class CreditMemoRepository extends EntityRepository implements CreditMemoRepositoryInterface
{
public function findByOrderId($orderId): ?CreditMemoInterface
public function findByOrderId(string $orderId): array
{
return $this->createQueryBuilder('c')
->andWhere('c.order = :orderId')
Expand Down
3 changes: 1 addition & 2 deletions src/Repository/CreditMemoRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
namespace Sylius\RefundPlugin\Repository;

use Sylius\Component\Resource\Repository\RepositoryInterface;
use Sylius\RefundPlugin\Entity\CreditMemoInterface;

interface CreditMemoRepositoryInterface extends RepositoryInterface
{
public function findByOrderId($orderId): ?CreditMemoInterface;
public function findByOrderId(string $orderId): array;
}

0 comments on commit 1e2491e

Please sign in to comment.