From f68280488c88d8dfb0ff3ba792cc4cf46c800a73 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Sun, 9 Oct 2016 17:55:21 -0400 Subject: [PATCH] Remove custom error levels --- src/Psalm/Config.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Psalm/Config.php b/src/Psalm/Config.php index fc7ebc3fa..d00b9f5c7 100644 --- a/src/Psalm/Config.php +++ b/src/Psalm/Config.php @@ -63,11 +63,6 @@ class Config protected $issue_handlers = []; protected $custom_error_levels = [ - 'InvalidDocblock' => self::REPORT_INFO, - 'NullPropertyFetch' => self::REPORT_INFO, - 'MissingPropertyDeclaration' => self::REPORT_INFO, - 'MixedMethodCall' => self::REPORT_SUPPRESS, - 'TooManyArguments' => self::REPORT_SUPPRESS ]; protected $mock_classes = []; @@ -228,6 +223,10 @@ class Config } } + /** + * @param string $file_name + * @return string + */ public function shortenFileName($file_name) { return preg_replace('/^' . preg_quote($this->base_dir, '/') . '/', '', $file_name); @@ -298,11 +297,17 @@ class Config return $this->filetype_handlers; } + /** + * @return array + */ public function getMockClasses() { return $this->mock_classes; } + /** + * @return array + */ public function getPlugins() { return $this->plugins;