icingadb-web/phpstan.neon
Bastian Lederer 5053fb30b6 Clean up and merge PHPStan baselines
Remove errors no longer reported. Since PHP 7.x is no longer supported, remove
the 7.x baseline. It is now no longer necessary to have multiple baseline
files.
2026-03-20 14:54:41 +01:00

31 lines
718 B
Text

includes:
- phpstan-baseline.neon
parameters:
level: max
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
treatPhpDocTypesAsCertain: false
paths:
- application
- library
scanDirectories:
- /icingaweb2
- /usr/share/icinga-php
- /usr/share/icingaweb2-modules
ignoreErrors:
-
messages:
- '#Unsafe usage of new static\(\)#'
- '#. but return statement is missing#'
reportUnmatched: false
universalObjectCratesClasses:
- ipl\Orm\Model
- Icinga\Web\View
- Icinga\Data\ConfigObject
- Icinga\Module\Monitoring\Object\MonitoredObject