Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick477 committed Aug 21, 2018
1 parent 2e8673d commit d9216c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Repository/PaymentMethodRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

final class PaymentMethodRepository extends BasePaymentMethodRepository implements PaymentMethodRepositoryInterface
{
public function findOneByGatewayFactoryNameAndChannel(string $gatewayFactoryName, ChannelInterface $channel): PaymentMethodInterface
public function findOneByGatewayFactoryNameAndChannel(string $gatewayFactoryName, ChannelInterface $channel): ?PaymentMethodInterface
{
return $this->createQueryBuilder('o')
->innerJoin('o.gatewayConfig', 'gatewayConfig')
Expand Down
2 changes: 1 addition & 1 deletion src/Repository/PaymentMethodRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

interface PaymentMethodRepositoryInterface extends BasePaymentMethodRepositoryInterface
{
public function findOneByGatewayFactoryNameAndChannel(string $gatewayFactoryName, ChannelInterface $channel): PaymentMethodInterface;
public function findOneByGatewayFactoryNameAndChannel(string $gatewayFactoryName, ChannelInterface $channel): ?PaymentMethodInterface;
}

0 comments on commit d9216c6

Please sign in to comment.