Simplify code - catch \Throwable capture all exceptions
This is a legacy when we did support PHP 5.X
This commit is contained in:
parent
da01afacfc
commit
648c6949fc
@ -750,7 +750,6 @@ class Filesystem
|
|||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
} catch (\Exception $e) {
|
|
||||||
}
|
}
|
||||||
\restore_error_handler();
|
\restore_error_handler();
|
||||||
|
|
||||||
|
@ -487,7 +487,6 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
|
|||||||
$fresh = true;
|
$fresh = true;
|
||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
} catch (\Exception $e) {
|
|
||||||
} finally {
|
} finally {
|
||||||
error_reporting($errorLevel);
|
error_reporting($errorLevel);
|
||||||
}
|
}
|
||||||
@ -556,7 +555,6 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
|
|||||||
try {
|
try {
|
||||||
$oldContainer = include $cache->getPath();
|
$oldContainer = include $cache->getPath();
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
} catch (\Exception $e) {
|
|
||||||
} finally {
|
} finally {
|
||||||
error_reporting($errorLevel);
|
error_reporting($errorLevel);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user