1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-14 02:07:37 +01:00
psalm/src/CodeInspector/ExceptionHandler.php

22 lines
366 B
PHP
Raw Normal View History

<?php
namespace CodeInspector;
class ExceptionHandler
{
2016-06-10 00:08:25 +02:00
public static function accepts(Issue\CodeIssue $e)
{
2016-06-10 00:08:25 +02:00
$config = Config::getInstance();
if ($config->stopOnError) {
die($e->getMessage());
}
if ($config->excludeIssueInFile(get_class($e), $e->getFileName())) {
return false;
}
}
}