diff --git a/src/Eccube/Repository/CustomerRepository.php b/src/Eccube/Repository/CustomerRepository.php index 7d8f0ae83d3..79c17e2b49c 100644 --- a/src/Eccube/Repository/CustomerRepository.php +++ b/src/Eccube/Repository/CustomerRepository.php @@ -160,7 +160,7 @@ public function getQueryBuilderBySearchData($searchData) // tel if (isset($searchData['phone_number']) && StringUtil::isNotBlank($searchData['phone_number'])) { - $tel = preg_replace('/[^0-9]/ ', '', $searchData['phone_number']); + $tel = preg_replace('/[^0-9]/', '', $searchData['phone_number']); $qb ->andWhere('c.phone_number LIKE :phone_number') ->setParameter('phone_number', '%'.$tel.'%'); diff --git a/src/Eccube/Repository/OrderRepository.php b/src/Eccube/Repository/OrderRepository.php index d9ae8aeeabf..e2fa7501d41 100644 --- a/src/Eccube/Repository/OrderRepository.php +++ b/src/Eccube/Repository/OrderRepository.php @@ -179,7 +179,7 @@ public function getQueryBuilderBySearchDataForAdmin($searchData) // tel if (isset($searchData['phone_number']) && StringUtil::isNotBlank($searchData['phone_number'])) { - $tel = preg_replace('/[^0-9]/ ', '', $searchData['phone_number']); + $tel = preg_replace('/[^0-9]/', '', $searchData['phone_number']); $qb ->andWhere('o.phone_number LIKE :phone_number') ->setParameter('phone_number', '%'.$tel.'%'); diff --git a/src/Eccube/Repository/ShippingRepository.php b/src/Eccube/Repository/ShippingRepository.php index e25bfef4283..f26a00b865b 100644 --- a/src/Eccube/Repository/ShippingRepository.php +++ b/src/Eccube/Repository/ShippingRepository.php @@ -127,7 +127,7 @@ public function getQueryBuilderBySearchDataForAdmin($searchData) // tel if (isset($searchData['phone_number']) && StringUtil::isNotBlank($searchData['phone_number'])) { - $tel = preg_replace('/[^0-9]/ ', '', $searchData['phone_number']); + $tel = preg_replace('/[^0-9]/', '', $searchData['phone_number']); $qb ->andWhere('s.phone_number LIKE :phone_number') ->setParameter('phone_number', '%'.$tel.'%');