MDL-52284 core: PHP7 engine errors have type Throwable
This commit is contained in:
@@ -145,7 +145,8 @@ abstract class database_driver_testcase extends base_testcase {
|
||||
} catch (Exception $ex) {
|
||||
$e = $ex;
|
||||
} catch (Throwable $ex) {
|
||||
$e = $ex; // PHP7.
|
||||
// Engine errors in PHP7 throw exceptions of type Throwable (this "catch" will be ignored in PHP5).
|
||||
$e = $ex;
|
||||
}
|
||||
|
||||
if (isset($e)) {
|
||||
|
||||
Reference in New Issue
Block a user