Skip to content

Commit

Permalink
Fix psalm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-groncki committed Apr 25, 2022
1 parent 8f057da commit dd2c076
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Repository/AdyenTokenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ final class AdyenTokenRepository extends EntityRepository implements AdyenTokenR
/**
* @psalm-suppress MixedReturnStatement
* @psalm-suppress MixedInferredReturnType
* @psalm-suppress MoreSpecificReturnType
* @psalm-suppress LessSpecificReturnStatement
*/
public function findOneByPaymentMethodAndCustomer(
PaymentMethodInterface $paymentMethod,
Expand Down
4 changes: 4 additions & 0 deletions src/Repository/PaymentMethodRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public function __construct(EntityRepository $baseRepository)
/**
* @psalm-suppress MixedReturnStatement
* @psalm-suppress MixedInferredReturnType
* @psalm-suppress MoreSpecificReturnType
* @psalm-suppress LessSpecificReturnStatement
*/
public function find(int $id): ?PaymentMethodInterface
{
Expand All @@ -39,6 +41,8 @@ public function find(int $id): ?PaymentMethodInterface
/**
* @psalm-suppress MixedReturnStatement
* @psalm-suppress MixedInferredReturnType
* @psalm-suppress MoreSpecificReturnType
* @psalm-suppress LessSpecificReturnStatement
*/
public function getOneForAdyenAndCode(string $code): PaymentMethodInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Repository/PaymentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public function __construct(EntityRepository $baseRepository)
/**
* @psalm-suppress MixedReturnStatement
* @psalm-suppress MixedInferredReturnType
* @psalm-suppress MoreSpecificReturnType
* @psalm-suppress LessSpecificReturnStatement
*/
public function find(int $id): ?PaymentInterface
{
Expand Down
4 changes: 4 additions & 0 deletions src/Repository/RefundPaymentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public function __construct(EntityRepository $baseRepository)
/**
* @psalm-suppress MixedReturnStatement
* @psalm-suppress MixedInferredReturnType
* @psalm-suppress MoreSpecificReturnType
* @psalm-suppress LessSpecificReturnStatement
*/
public function getForOrderNumberAndRefundPaymentId(
string $orderNumber,
Expand All @@ -49,6 +51,8 @@ public function getForOrderNumberAndRefundPaymentId(
/**
* @psalm-suppress MixedReturnStatement
* @psalm-suppress MixedInferredReturnType
* @psalm-suppress MoreSpecificReturnType
* @psalm-suppress LessSpecificReturnStatement
*/
public function find(int $id): ?RefundPaymentInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Resolver/Order/PaymentCheckoutOrderResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ private function getCurrentRequest(): Request

/**
* @psalm-suppress MixedInferredReturnType
* @psalm-suppress MoreSpecificReturnType
* @psalm-suppress LessSpecificReturnStatement
*/
private function getCurrentOrder(): ?OrderInterface
{
Expand Down

0 comments on commit dd2c076

Please sign in to comment.