Skip to content

Commit

Permalink
Merge branch 'rmsundar1-newrelic-capture-exception' of github.com:rms…
Browse files Browse the repository at this point in the history
…undar1/magento2 into 2.4-develop-prs
  • Loading branch information
ishakhsuvarov committed Aug 17, 2022
2 parents 6cc5765 + 03e7f43 commit 31e456f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/NewRelicReporting/Model/NewRelicWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\NewRelicReporting\Model;

use Exception;
use Throwable;

/**
* Wrapper for New Relic functions
Expand Down Expand Up @@ -33,10 +33,10 @@ public function addCustomParameter($param, $value)
/**
* Wrapper for 'newrelic_notice_error' function
*
* @param Exception $exception
* @param Throwable $exception
* @return void
*/
public function reportError(Exception $exception)
public function reportError(Throwable $exception)
{
if ($this->isExtensionInstalled()) {
newrelic_notice_error($exception->getMessage(), $exception);
Expand Down

0 comments on commit 31e456f

Please sign in to comment.