Skip to content

Commit

Permalink
Fix rollbar triggering strict notices
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Aug 31, 2015
1 parent 877ae63 commit 18013a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Monolog/Handler/RollbarHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ public function __construct(RollbarNotifier $rollbarNotifier, $level = Logger::E
protected function write(array $record)
{
if (isset($record['context']['exception']) && $record['context']['exception'] instanceof Exception) {
$context = $record;
$context = $record['context'];
$exception = $context['exception'];
unset($context['exception']);

$payload = isset($context['payload']) ? $context['payload'] : [];
$payload = [];

This comment has been minimized.

Copy link
@stloyd

stloyd Aug 31, 2015

This will fail on PHP 5.3

if (isset($context['payload'])) {
$payload = $context['payload'];
unset($context['payload']);
}

Expand Down

1 comment on commit 18013a5

@Seldaek
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D'oh, yes..

Please sign in to comment.