Rough changes to get PHP7 working.

This commit is contained in:
John S Long
2015-05-20 13:40:12 -05:00
parent 494fa733db
commit e47c104d21
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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(),
+1 -1
View File
@@ -74,7 +74,7 @@ abstract class Handler implements HandlerInterface
/**
* @param Exception $exception
*/
public function setException(Exception $exception)
public function setException($exception)
{
$this->exception = $exception;
}
+1 -1
View File
@@ -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
View File
@@ -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
+2 -2
View File
@@ -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);
}