Object type hints

This commit is contained in:
Andy Miller
2015-02-18 12:37:19 -07:00
parent ec67bf4c5b
commit 1f906326e7
2 changed files with 2 additions and 2 deletions

View File

@@ -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());

View File

@@ -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');