diff --git a/src/Sylius/Bundle/ShopBundle/SectionResolver/ShopUriBasedSectionResolver.php b/src/Sylius/Bundle/ShopBundle/SectionResolver/ShopUriBasedSectionResolver.php
index <HASH>..<HASH> 100644
--- a/src/Sylius/Bundle/ShopBundle/SectionResolver/ShopUriBasedSectionResolver.php
+++ b/src/Sylius/Bundle/ShopBundle/SectionResolver/ShopUriBasedSectionResolver.php
@@ -28,7 +28,7 @@ final class ShopUriBasedSectionResolver implements UriBasedSectionResolverInterf
 
     public function getSection(string $uri): SectionInterface
     {
-        if (str_contains($uri, $this->shopCustomerAccountUri)) {
+        if (strpos($uri, $this->shopCustomerAccountUri) !== false) {
             return new ShopCustomerAccountSubSection();
         }
Replace str_contains with strpos method to support PHP 7