Skip to content

Commit

Permalink
Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Apr 17, 2022
1 parent 5e5e301 commit ff163ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/CurrencyResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Baraja\EcommerceStandard\Service\CurrencyResolverInterface;
use Baraja\Localization\Localization;
use Baraja\Shop\Currency\CurrencyManagerAccessor;
use Baraja\Shop\Entity\Currency\Currency;

class CurrencyResolver implements CurrencyResolverInterface
{
Expand All @@ -34,7 +33,7 @@ public function resolveCode(?string $locale = null): string
}


public function resolveEntity(?string $locale = null): Currency
public function resolveEntity(?string $locale = null): CurrencyInterface
{
return $this->currencyManager->get()->getCurrency($this->resolveCode($locale));
}
Expand Down

0 comments on commit ff163ef

Please sign in to comment.