mirror of
https://github.com/filp/whoops.git
synced 2026-09-17 05:06:22 +00:00
Rough changes to get PHP7 working.
This commit is contained in:
@@ -28,7 +28,7 @@ class Inspector
|
||||
/**
|
||||
* @param Exception $exception The exception to inspect
|
||||
*/
|
||||
public function __construct(Exception $exception)
|
||||
public function __construct($exception)
|
||||
{
|
||||
$this->exception = $exception;
|
||||
}
|
||||
@@ -131,7 +131,7 @@ class Inspector
|
||||
* @param Exception $exception
|
||||
* @return array
|
||||
*/
|
||||
protected function getFrameFromException(Exception $exception)
|
||||
protected function getFrameFromException($exception)
|
||||
{
|
||||
return array(
|
||||
'file' => $exception->getFile(),
|
||||
|
||||
@@ -74,7 +74,7 @@ abstract class Handler implements HandlerInterface
|
||||
/**
|
||||
* @param Exception $exception
|
||||
*/
|
||||
public function setException(Exception $exception)
|
||||
public function setException($exception)
|
||||
{
|
||||
$this->exception = $exception;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ interface HandlerInterface
|
||||
* @param Exception $exception
|
||||
* @return void
|
||||
*/
|
||||
public function setException(Exception $exception);
|
||||
public function setException($exception);
|
||||
|
||||
/**
|
||||
* @param Inspector $inspector
|
||||
|
||||
+2
-2
@@ -95,7 +95,7 @@ class Run
|
||||
* @param Exception $exception
|
||||
* @return Inspector
|
||||
*/
|
||||
protected function getInspector(Exception $exception)
|
||||
protected function getInspector($exception)
|
||||
{
|
||||
return new Inspector($exception);
|
||||
}
|
||||
@@ -230,7 +230,7 @@ class Run
|
||||
* @param Exception $exception
|
||||
* @return string Output generated by handlers
|
||||
*/
|
||||
public function handleException(Exception $exception)
|
||||
public function handleException($exception)
|
||||
{
|
||||
// Walk the registered handlers in the reverse order
|
||||
// they were registered, and pass off the exception
|
||||
|
||||
@@ -17,7 +17,7 @@ class InspectorTest extends TestCase
|
||||
* @param Exception $previous
|
||||
* @return Exception
|
||||
*/
|
||||
protected function getException($message = null, $code = 0, Exception $previous = null)
|
||||
protected function getException($message = null, $code = 0, $previous = null)
|
||||
{
|
||||
return new Exception($message, $code, $previous);
|
||||
}
|
||||
@@ -26,7 +26,7 @@ class InspectorTest extends TestCase
|
||||
* @param Exception $exception|null
|
||||
* @return Whoops\Exception\Inspector
|
||||
*/
|
||||
protected function getInspectorInstance(Exception $exception = null)
|
||||
protected function getInspectorInstance($exception = null)
|
||||
{
|
||||
return new Inspector($exception);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user