Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jul 1, 2013
1 parent 965bb01 commit 947e8d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ErrorHandler.php
Expand Up @@ -104,6 +104,7 @@ public function handle($level, $message, $file = 'unknown', $line = 0, $context
$stack = array_map(
function ($row) {
unset($row['args']);

return $row;
},
array_slice(debug_backtrace(false), 0, 10)
Expand Down
6 changes: 3 additions & 3 deletions Exception/ContextErrorException.php
Expand Up @@ -19,18 +19,18 @@
class ContextErrorException extends \ErrorException
{
private $context = array();

public function __construct($message, $code, $severity, $filename, $lineno, $context = array())
{
parent::__construct($message, $code, $severity, $filename, $lineno);
$this->context = $context;
}

/**
* @return array Array of variables that existed when the exception occured
*/
public function getContext()
{
return $this->context;
}
}
}

0 comments on commit 947e8d4

Please sign in to comment.