mirror of
https://github.com/getgrav/grav.git
synced 2026-07-15 22:03:28 +02:00
Object type hints
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user