diff --git a/src/Sylius/Bundle/ApiBundle/Security/OrderAdjustmentsVoter.php b/src/Sylius/Bundle/ApiBundle/Security/OrderAdjustmentsVoter.php index 8a35f8c5a9..c1e1c75370 100644 --- a/src/Sylius/Bundle/ApiBundle/Security/OrderAdjustmentsVoter.php +++ b/src/Sylius/Bundle/ApiBundle/Security/OrderAdjustmentsVoter.php @@ -38,7 +38,7 @@ final class OrderAdjustmentsVoter extends Voter return self::SYLIUS_ORDER_ADJUSTMENT === $attribute; } - protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token): bool + protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token, mixed $vote = null): bool { $user = $token->getUser(); diff --git a/src/Sylius/Bundle/ApiBundle/Security/ShopUserVoter.php b/src/Sylius/Bundle/ApiBundle/Security/ShopUserVoter.php index 1a4ab54210..71e12a8810 100644 --- a/src/Sylius/Bundle/ApiBundle/Security/ShopUserVoter.php +++ b/src/Sylius/Bundle/ApiBundle/Security/ShopUserVoter.php @@ -35,7 +35,7 @@ final class ShopUserVoter extends Voter return self::SYLIUS_SHOP_USER === $attribute; } - protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token): bool + protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token, mixed $vote = null): bool { $user = $token->getUser(); diff --git a/src/Sylius/Bundle/ApiBundle/tests/Application/src/Kernel.php b/src/Sylius/Bundle/ApiBundle/tests/Application/src/Kernel.php index f3373aac72..c659b65586 100644 --- a/src/Sylius/Bundle/ApiBundle/tests/Application/src/Kernel.php +++ b/src/Sylius/Bundle/ApiBundle/tests/Application/src/Kernel.php @@ -57,7 +57,7 @@ final class Kernel extends BaseKernel $container->setParameter('container.dumper.inline_class_loader', true); } - public function registerContainerConfiguration(LoaderInterface $loader) + public function registerContainerConfiguration(LoaderInterface $loader): void { $loader->load($this->getProjectDir() . '/config/config.yaml'); diff --git a/src/Sylius/Bundle/CoreBundle/EventListener/UserImpersonatorSubscriber.php b/src/Sylius/Bundle/CoreBundle/EventListener/UserImpersonatorSubscriber.php index 9f28dc4232..b5844c5667 100644 --- a/src/Sylius/Bundle/CoreBundle/EventListener/UserImpersonatorSubscriber.php +++ b/src/Sylius/Bundle/CoreBundle/EventListener/UserImpersonatorSubscriber.php @@ -24,7 +24,7 @@ final class UserImpersonatorSubscriber implements EventSubscriberInterface { } - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return [ LogoutEvent::class => 'unimpersonate', diff --git a/src/Sylius/Bundle/CoreBundle/Form/Type/ShopBillingDataType.php b/src/Sylius/Bundle/CoreBundle/Form/Type/ShopBillingDataType.php index 75384f07b0..4c90aa82a8 100644 --- a/src/Sylius/Bundle/CoreBundle/Form/Type/ShopBillingDataType.php +++ b/src/Sylius/Bundle/CoreBundle/Form/Type/ShopBillingDataType.php @@ -56,7 +56,7 @@ final class ShopBillingDataType extends AbstractType ; } - public function configureOptions(OptionsResolver $resolver) + public function configureOptions(OptionsResolver $resolver): void { $resolver->setDefault('data_class', $this->dataClass); } diff --git a/src/Sylius/Bundle/CoreBundle/Security/ImpersonationVoter.php b/src/Sylius/Bundle/CoreBundle/Security/ImpersonationVoter.php index 3db2b3565f..6164db42f9 100644 --- a/src/Sylius/Bundle/CoreBundle/Security/ImpersonationVoter.php +++ b/src/Sylius/Bundle/CoreBundle/Security/ImpersonationVoter.php @@ -30,7 +30,7 @@ class ImpersonationVoter implements CacheableVoterInterface ) { } - public function vote(TokenInterface $token, mixed $subject, array $attributes): int + public function vote(TokenInterface $token, mixed $subject, array $attributes, mixed $vote = null): int { $result = VoterInterface::ACCESS_ABSTAIN; diff --git a/src/Sylius/Bundle/CurrencyBundle/Form/Type/ExchangeRateType.php b/src/Sylius/Bundle/CurrencyBundle/Form/Type/ExchangeRateType.php index 15eef70a22..a52a69c5f7 100644 --- a/src/Sylius/Bundle/CurrencyBundle/Form/Type/ExchangeRateType.php +++ b/src/Sylius/Bundle/CurrencyBundle/Form/Type/ExchangeRateType.php @@ -66,7 +66,7 @@ final class ExchangeRateType extends AbstractResourceType $resolver->setDefault('rounding_mode', \NumberFormatter::ROUND_HALFEVEN); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'sylius_exchange_rate'; } diff --git a/src/Sylius/Bundle/UserBundle/tests/Functional/app/AppKernel.php b/src/Sylius/Bundle/UserBundle/tests/Functional/app/AppKernel.php index fa0e0a1436..b59c959262 100644 --- a/src/Sylius/Bundle/UserBundle/tests/Functional/app/AppKernel.php +++ b/src/Sylius/Bundle/UserBundle/tests/Functional/app/AppKernel.php @@ -38,7 +38,7 @@ class AppKernel extends Kernel ]; } - public function registerContainerConfiguration(LoaderInterface $loader) + public function registerContainerConfiguration(LoaderInterface $loader): void { $loader->load(__DIR__ . '/config/config.yml'); } diff --git a/src/Sylius/Component/User/Security/Checker/EnabledUserChecker.php b/src/Sylius/Component/User/Security/Checker/EnabledUserChecker.php index 29db0df32b..e87ff58679 100644 --- a/src/Sylius/Component/User/Security/Checker/EnabledUserChecker.php +++ b/src/Sylius/Component/User/Security/Checker/EnabledUserChecker.php @@ -15,6 +15,7 @@ namespace Sylius\Component\User\Security\Checker; use Sylius\Component\User\Model\UserInterface; use Symfony\Component\Security\Core\Exception\DisabledException; +use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\User\UserCheckerInterface; use Symfony\Component\Security\Core\User\UserInterface as SymfonyUserInterface; @@ -34,7 +35,7 @@ final class EnabledUserChecker implements UserCheckerInterface } } - public function checkPostAuth(SymfonyUserInterface $user): void + public function checkPostAuth(SymfonyUserInterface $user, ?TokenInterface $token = null): void { } }