Skip to content

Commit

Permalink
Add return type to CreditMemoRepositoryInterface
Browse files Browse the repository at this point in the history
Add return type to CreditMemoRepository

Fix errors in CreditMemoRepository

Remove useless line in CreditMemoRepository
  • Loading branch information
clem21 committed Jan 8, 2021
1 parent 5160572 commit 87eb341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Doctrine/ORM/CreditMemoRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
namespace Sylius\RefundPlugin\Doctrine\ORM;

use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository;
use Sylius\RefundPlugin\Entity\CreditMemoInterface;
use Sylius\RefundPlugin\Repository\CreditMemoRepositoryInterface;

class CreditMemoRepository extends EntityRepository implements CreditMemoRepositoryInterface
{
public function findByOrderId($orderId)
public function findByOrderId(string $orderId): array
{
return $this->createQueryBuilder('c')
->andWhere('c.order = :orderId')
Expand Down
2 changes: 1 addition & 1 deletion src/Repository/CreditMemoRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@

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

0 comments on commit 87eb341

Please sign in to comment.