Skip to content

Commit

Permalink
METSUP:68: fix static test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kenza-ya committed Apr 19, 2024
1 parent 09b4ccb commit 2e38754
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Observers/UrlRewriteObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2e38754

Please sign in to comment.