Skip to content

Commit

Permalink
Increase phpstan level to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlaefer committed Jul 24, 2020
1 parent 1b7a46a commit ed044dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Phile/Core/Bootstrap.php
Expand Up @@ -73,6 +73,7 @@ public static function setupErrorHandler(Config $config)
/** @var \Phile\ServiceLocator\ErrorHandlerInterface */
$errorHandler = ServiceLocator::getService('Phile_ErrorHandler');
set_error_handler(Closure::fromCallable([$errorHandler, 'handleError']));
// @phpstan-ignore-next-line Closure is callable.
set_exception_handler(Closure::fromCallable([$errorHandler, 'handleException']));
register_shutdown_function(Closure::fromCallable([$errorHandler, 'handleShutdown']));
}
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
@@ -1,5 +1,5 @@
parameters:
level: 4 # higher is more strict
level: 5 # higher is more strict
paths:
- config/
- lib/Phile/
Expand Down

0 comments on commit ed044dc

Please sign in to comment.