Simplify code - catch \Throwable capture all exceptions

This is a legacy when we did support PHP 5.X
This commit is contained in:
Grégoire Pineau 2019-06-03 17:30:31 +02:00
parent da01afacfc
commit 648c6949fc
2 changed files with 0 additions and 3 deletions

View File

@ -750,7 +750,6 @@ class Filesystem
return $result;
} catch (\Throwable $e) {
} catch (\Exception $e) {
}
\restore_error_handler();

View File

@ -487,7 +487,6 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
$fresh = true;
}
} catch (\Throwable $e) {
} catch (\Exception $e) {
} finally {
error_reporting($errorLevel);
}
@ -556,7 +555,6 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
try {
$oldContainer = include $cache->getPath();
} catch (\Throwable $e) {
} catch (\Exception $e) {
} finally {
error_reporting($errorLevel);
}