Skip to content

Commit f12eb0a

Browse files
authored
Merge pull request #2 from punkave/1.4
Fix for exception handling in PHP 7
2 parents 1a1ee92 + c1445bb commit f12eb0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/test/sfTestFunctionalBase.class.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,9 @@ static public function handlePhpError($errno, $errstr, $errfile, $errline)
478478
/**
479479
* Exception handler for the current test browser instance.
480480
*
481-
* @param Exception $exception The exception
481+
* @param $exception The exception
482482
*/
483-
function handleException(Exception $exception)
483+
function handleException($exception)
484484
{
485485
$this->test()->error(sprintf('%s: %s', get_class($exception), $exception->getMessage()));
486486

lib/vendor/lime/lime.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ public function handle_error($code, $message, $file, $line, $context)
570570
$this->error($type.': '.$message, $file, $line, $trace);
571571
}
572572

573-
public function handle_exception(Exception $exception)
573+
public function handle_exception($exception)
574574
{
575575
$this->error(get_class($exception).': '.$exception->getMessage(), $exception->getFile(), $exception->getLine(), $exception->getTrace());
576576

0 commit comments

Comments
 (0)