diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index a75f41682..be51865fa 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -110,7 +110,7 @@ class Page * @param \SplFileInfo $file The file information for the .md file that the page represents * @return void */ - public function init($file) + public function init(\SplFileInfo $file) { $this->filePath($file->getPathName()); $this->modified($file->getMTime()); diff --git a/system/src/Grav/Common/Service/ErrorServiceProvider.php b/system/src/Grav/Common/Service/ErrorServiceProvider.php index a4280b6d6..3f3609729 100644 --- a/system/src/Grav/Common/Service/ErrorServiceProvider.php +++ b/system/src/Grav/Common/Service/ErrorServiceProvider.php @@ -30,7 +30,7 @@ class ErrorServiceProvider implements ServiceProviderInterface $errors->pushHandler($json_page, 'json'); $logger = $container['log']; - $errors->pushHandler(function ($exception, $inspector, $run) use($logger) { + $errors->pushHandler(function (\Exception $exception, $inspector, $run) use ($logger) { $logger->addCritical($exception->getMessage(). ' - Trace: '. $exception->getTraceAsString()); }, 'log');