Skip to content

Commit

Permalink
Allow multiple debugvars in 1 call
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Feb 2, 2015
1 parent 8bc0265 commit 9eceaca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/LaravelDebugBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,9 @@ public function __call($method, $args)
{
$messageLevels = array('emergency', 'alert', 'critical', 'error', 'warning', 'notice', 'info', 'debug', 'log');
if (in_array($method, $messageLevels)) {
$this->addMessage($args[0], $method);
foreach($args as $arg) {
$this->addMessage($arg, $method);
}
}
}

Expand Down

0 comments on commit 9eceaca

Please sign in to comment.