Skip to content

Commit 2426556

Browse files
committed
Remove typehint from exception handler
This exception handler can be passed Exceptions as well as Errors. In PHP7 those both fall under the parent class 'Throwable', but for PHP5 BC it's advised to just remove the typehint entirely
1 parent ab1d8fa commit 2426556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/test/sfTestFunctionalBase.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ static public function handlePhpError($errno, $errstr, $errfile, $errline)
480480
*
481481
* @param Exception $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

0 commit comments

Comments
 (0)