summaryrefslogtreecommitdiffstats
path: root/phpstan.neon
diff options
context:
space:
mode:
Diffstat (limited to 'phpstan.neon')
-rw-r--r--phpstan.neon35
1 files changed, 35 insertions, 0 deletions
diff --git a/phpstan.neon b/phpstan.neon
new file mode 100644
index 0000000..b540b89
--- /dev/null
+++ b/phpstan.neon
@@ -0,0 +1,35 @@
+includes:
+ - phpstan-baseline.neon
+
+parameters:
+ level: max
+
+ checkFunctionNameCase: true
+ checkInternalClassCaseSensitivity: true
+ treatPhpDocTypesAsCertain: false
+
+ paths:
+ - application
+ - library
+
+ scanDirectories:
+ - /icingaweb2
+ - /usr/share/icinga-php/ipl
+ - /usr/share/icinga-php/vendor
+ - /usr/share/icingaweb2-modules/icingadb
+ - /usr/share/icingaweb2-modules/pdfexport
+
+ ignoreErrors:
+ -
+ messages:
+ - '#Unsafe usage of new static\(\)#'
+ - '#. but return statement is missing#'
+ reportUnmatched: false
+
+ - '#Call to an undefined method Icinga\\Module\\Reporting\\RetryConnection::lastInsertId\(\)#'
+
+ - '#Call to an undefined method Zend_Controller_Action_HelperBroker::layout\(\)#'
+
+ universalObjectCratesClasses:
+ - Icinga\Web\View
+ - ipl\Orm\Model