From 2e38754a188124a0e21afabb661a77901750bbba Mon Sep 17 00:00:00 2001 From: yamlahik Date: Fri, 19 Apr 2024 08:48:45 +0200 Subject: [PATCH] METSUP:68: fix static test issue --- src/Observers/UrlRewriteObserver.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Observers/UrlRewriteObserver.php b/src/Observers/UrlRewriteObserver.php index 2534729..09bcad9 100644 --- a/src/Observers/UrlRewriteObserver.php +++ b/src/Observers/UrlRewriteObserver.php @@ -342,7 +342,7 @@ protected function process() try { $this->persistUrlRewriteProductCategory($urlRewriteProductCategory); } catch (\PDOException $pdoe) { - $this->handleDuplicateUrlKeyExceptionWithStrictMode($urlRewriteProductCategory, $pdoe); + $this->handleDuplicateUrlKeyExceptionWithStrictMode($urlRewriteProductCategory, $pdoe); } } } catch (\Exception $e) { @@ -869,12 +869,12 @@ protected function loadProduct($sku) } /** - * @param array $urlRewriteData - * @param \PDOException|\Exception $pdoe + * @param array $urlRewriteData data of urlrewrite + * @param \PDOException $pdoe pdo exception * @return void - * @throws \Exception + * @throws \PDOException */ - public function handleDuplicateUrlKeyExceptionWithStrictMode(array $urlRewriteData, \PDOException|\Exception $pdoe): void + public function handleDuplicateUrlKeyExceptionWithStrictMode(array $urlRewriteData, \PDOException $pdoe): void { $message = sprintf( 'Is a "Duplicate entry" PDO exception is thrown: with Urlrewrite Data \\n