Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/finder/SplFileInfo.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/vendor/symfony/finder/SplFileInfo.php Thu Apr 26 11:26:54 2018 +0100 +++ b/vendor/symfony/finder/SplFileInfo.php Tue Jul 10 15:07:59 2018 +0100 @@ -66,12 +66,11 @@ */ public function getContents() { - $level = error_reporting(0); + set_error_handler(function ($type, $msg) use (&$error) { $error = $msg; }); $content = file_get_contents($this->getPathname()); - error_reporting($level); + restore_error_handler(); if (false === $content) { - $error = error_get_last(); - throw new \RuntimeException($error['message']); + throw new \RuntimeException($error); } return $content;