Skip to content

Commit

Permalink
fix uncompatible FraudSuspicionRepositoryInterface::createQueryBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherhero committed Oct 12, 2022
1 parent c46efde commit 0d49b78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Repository/FraudSuspicionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(EntityRepository $decoratedRepository)
$this->decoratedRepository = $decoratedRepository;
}

public function createQueryBuilder($alias, $indexBy = null): QueryBuilder
public function createQueryBuilder($alias, $indexBy = null)
{
return $this->decoratedRepository->createQueryBuilder($alias, $indexBy);
}
Expand Down Expand Up @@ -79,7 +79,7 @@ public function countByCustomerAndCommentAndDate(
string $status,
\DateTime $date
): string {
return $this->decoratedRepository->createQueryBuilder('o')
return (string) $this->decoratedRepository->createQueryBuilder('o')
->select(['COUNT(o.id)'])
->innerJoin('o.customer', 'customer')
->andWhere('customer = :customer')
Expand Down
2 changes: 1 addition & 1 deletion src/Repository/FraudSuspicionRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

interface FraudSuspicionRepositoryInterface extends RepositoryInterface
{
public function createQueryBuilder($alias, $indexBy = null): QueryBuilder;
public function createQueryBuilder($alias, $indexBy = null);

public function createListQueryBuilder(): QueryBuilder;

Expand Down

0 comments on commit 0d49b78

Please sign in to comment.