From ca5f31358ddd705da2a755bd413fa8cb6b5939bb Mon Sep 17 00:00:00 2001 From: Simon Vianen Date: Fri, 18 Oct 2024 09:02:44 +0000 Subject: [PATCH] [FEATURE][IN23-284]changed str_strt with strpos for php 7 compatibility --- Console/Command/Import.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Console/Command/Import.php b/Console/Command/Import.php index 1d599d1..bcb1773 100644 --- a/Console/Command/Import.php +++ b/Console/Command/Import.php @@ -205,13 +205,12 @@ private function renderConversion($data) /** * @param $fromUrl * @param $storeId - * @return int */ - private function getStoreView($fromUrl): int + private function getStoreView($fromUrl) { $storeId = $this->storeManager->getDefaultStoreView()->getId(); foreach ($this->storeRepository->getList() as $store) { - if (str_starts_with($fromUrl, $store->getBaseUrl())) { + if (strpos($fromUrl, $store->getBaseUrl(), 0)) { $storeId = $store->getId(); break; }