icingaweb2/phpstan.neon
Bastian Lederer 9bd53accac 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:52:40 +01:00

41 lines
1.1 KiB
Text

includes:
- phpstan-baseline.neon
parameters:
level: max
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
treatPhpDocTypesAsCertain: false
paths:
- application
- library/Icinga
- modules/doc/application
- modules/migrate/application
- modules/setup/application
- modules/test/application
- modules/translation/application
- modules/doc/library
- modules/migrate/library
- modules/setup/library
- modules/translation/library
ignoreErrors:
- '#Unsafe usage of new static\(\)#'
- '#. but return statement is missing#'
- '#Cannot call method importNode\(\) on DOMDocument\|null.#'
scanDirectories:
- /usr/share/icinga-php
- /usr/share/icingaweb2-modules
excludePaths:
- library/Icinga/Test
universalObjectCratesClasses:
- ipl\Orm\Model
- Icinga\Data\ConfigObject
- Icinga\Web\View
- Icinga\Web\Session\SessionNamespace
- Icinga\User\Preferences