From 08d0f5a1f431f9c7400f8c8c264418541c1ef56f Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Wed, 2 Mar 2022 08:53:44 +0100 Subject: [PATCH] Remove type declarations for properties due to supporting PHP 7.3 --- .../EventListener/AdminSectionCacheControlSubscriber.php | 3 ++- ...opCustomerAccountSubSectionCacheControlSubscriber.php | 3 ++- .../SectionResolver/ShopUriBasedSectionResolver.php | 9 +++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Sylius/Bundle/AdminBundle/EventListener/AdminSectionCacheControlSubscriber.php b/src/Sylius/Bundle/AdminBundle/EventListener/AdminSectionCacheControlSubscriber.php index 08cc687f2c3..c85a01fbff1 100644 --- a/src/Sylius/Bundle/AdminBundle/EventListener/AdminSectionCacheControlSubscriber.php +++ b/src/Sylius/Bundle/AdminBundle/EventListener/AdminSectionCacheControlSubscriber.php @@ -21,7 +21,8 @@ final class AdminSectionCacheControlSubscriber implements EventSubscriberInterface { - private SectionProviderInterface $sectionProvider; + /** @var SectionProviderInterface */ + private $sectionProvider; public function __construct(SectionProviderInterface $sectionProvider) { diff --git a/src/Sylius/Bundle/ShopBundle/EventListener/ShopCustomerAccountSubSectionCacheControlSubscriber.php b/src/Sylius/Bundle/ShopBundle/EventListener/ShopCustomerAccountSubSectionCacheControlSubscriber.php index 0c01b84585a..803d481c9fa 100644 --- a/src/Sylius/Bundle/ShopBundle/EventListener/ShopCustomerAccountSubSectionCacheControlSubscriber.php +++ b/src/Sylius/Bundle/ShopBundle/EventListener/ShopCustomerAccountSubSectionCacheControlSubscriber.php @@ -21,7 +21,8 @@ final class ShopCustomerAccountSubSectionCacheControlSubscriber implements EventSubscriberInterface { - private SectionProviderInterface $sectionProvider; + /** @var SectionProviderInterface */ + private $sectionProvider; public function __construct(SectionProviderInterface $sectionProvider) { diff --git a/src/Sylius/Bundle/ShopBundle/SectionResolver/ShopUriBasedSectionResolver.php b/src/Sylius/Bundle/ShopBundle/SectionResolver/ShopUriBasedSectionResolver.php index a98b5068f2c..ef6c08b2845 100644 --- a/src/Sylius/Bundle/ShopBundle/SectionResolver/ShopUriBasedSectionResolver.php +++ b/src/Sylius/Bundle/ShopBundle/SectionResolver/ShopUriBasedSectionResolver.php @@ -18,16 +18,17 @@ final class ShopUriBasedSectionResolver implements UriBasedSectionResolverInterface { - private string $shopCustomerAccountResourceUri; + /** @var string */ + private $shopCustomerAccountUri; - public function __construct(string $shopCustomerAccountResourceUri = 'account') + public function __construct(string $shopCustomerAccountUri = 'account') { - $this->shopCustomerAccountResourceUri = $shopCustomerAccountResourceUri; + $this->shopCustomerAccountUri = $shopCustomerAccountUri; } public function getSection(string $uri): SectionInterface { - if (str_contains($uri, $this->shopCustomerAccountResourceUri)) { + if (str_contains($uri, $this->shopCustomerAccountUri)) { return new ShopCustomerAccountSubSection(); }