Skip to content

Commit

Permalink
Merge pull request #40 from morrislaptop/fix-params
Browse files Browse the repository at this point in the history
Fix extraParams to extraParams to match Notice class
  • Loading branch information
dbtlr committed Apr 20, 2015
2 parents 59b131a + 9525fde commit 5d6db50
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Airbrake/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function notifyOnError($message, array $backtrace = null, $extraParams =
'errorClass' => 'PHP::Error',
'backtrace' => $backtrace,
'errorMessage' => $message,
'extraParams' => $extraParams,
'extraParameters' => $extraParams,
));

return $this->notify($notice);
Expand All @@ -89,18 +89,18 @@ public function notifyOnError($message, array $backtrace = null, $extraParams =
/**
* Notify on an exception
*
* @param Exception $exception
* @param Exception $e
* @param null $extraParams
* @return string
*/
public function notifyOnException(Exception $exception, $extraParams = null)
public function notifyOnException(Exception $e, $extraParams = null)
{
$notice = new Notice;
$notice->load(array(
'errorClass' => get_class($exception),
'backtrace' => $this->cleanBacktrace($exception->getTrace() ?: debug_backtrace()),
'errorMessage' => $exception->getMessage().' in '.$exception->getFile().' on line '.$exception->getLine(),
'extraParams' => $extraParams,
'errorClass' => get_class($e),
'backtrace' => $this->cleanBacktrace($e->getTrace() ?: debug_backtrace()),
'errorMessage' => $e->getMessage().' in '.$e->getFile().' on line '.$e->getLine(),
'extraParameters' => $extraParams,
));

return $this->notify($notice);
Expand Down

0 comments on commit 5d6db50

Please sign in to comment.