Skip to content

Commit

Permalink
NTR: remove typehint for earlier sw versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Dec 20, 2024
1 parent 67a8a4d commit 14836f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Service/PaymentMethodService.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
use Shopware\Core\Defaults;
use Shopware\Core\Framework\Context;
use Shopware\Core\Framework\DataAbstractionLayer\EntityRepository;
use Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface;
use Shopware\Core\Framework\DataAbstractionLayer\Event\EntityWrittenContainerEvent;
use Shopware\Core\Framework\DataAbstractionLayer\Exception\InconsistentCriteriaIdsException;
use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria;
Expand Down Expand Up @@ -96,12 +97,12 @@ class PaymentMethodService
/**
* @param string $shopwareVersion
* @param MediaService $mediaService
* @param EntityRepository $mediaRepository
* @param EntityRepository|EntityRepositoryInterface $mediaRepository
* @param EntityRepository $paymentRepository
* @param PluginIdProvider $pluginIdProvider
* @param HttpClientInterface $httpClient
*/
public function __construct(string $shopwareVersion, MediaService $mediaService, EntityRepository $mediaRepository, EntityRepository $paymentRepository, PluginIdProvider $pluginIdProvider, HttpClientInterface $httpClient, PayPalExpressConfig $payPalExpressConfig)
public function __construct(string $shopwareVersion, MediaService $mediaService, $mediaRepository, EntityRepository $paymentRepository, PluginIdProvider $pluginIdProvider, HttpClientInterface $httpClient, PayPalExpressConfig $payPalExpressConfig)
{
$this->mediaService = $mediaService;
$this->mediaRepository = $mediaRepository;

Check failure on line 108 in src/Service/PaymentMethodService.php

View workflow job for this annotation

GitHub Actions / PHPStan

Property Kiener\MolliePayments\Service\PaymentMethodService::$mediaRepository (Shopware\Core\Framework\DataAbstractionLayer\EntityRepository) does not accept Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface.
Expand Down

0 comments on commit 14836f0

Please sign in to comment.