Build/Config/phpstan.neon

41 lines
1.3 KiB
Plaintext
Executable File

includes:
- phpstan-baseline.neon
parameters:
fileExtensions:
- php
reportUnmatchedIgnoredErrors: false
inferPrivatePropertyTypeFromConstructor: true
excludes_analyse:
- *.tpl.php
- */tests/*
- */Modules/Media/Files/*
- */d0cbb361b14ac3ef32486f0a09ab937d/*
- */test/*
- *Test.php
- *Routes.php
- *Hooks.php
- *ObjLoader.js
- */vendor/*
- *vendor*
- */Demo/*
- */Build/*
- */Cache/*
- */Docs/*
- */Documentation/*
- */Resources/*
- *Resources*
- */Routes/*
- */Hooks/*
- */node_modules/*
- */Modules/Shop/Admin/Install/Application/*
ignoreErrors:
- '#[.]*PhpOffice\\PhpSpreadsheet\\[.]*#'
- '#^Call to an undefined method phpOMS\\Module\\ModuleAbstract::[.]*#'
- '#^Strict comparison using === between[.]*#'
- '#expects phpOMS\\Algorithm\\PathFinding\\JumpPointNode\\|null, phpOMS\\Algorithm\\PathFinding\\Node\\|null given#'
- '#should return array<phpOMS\\Algorithm\\PathFinding\\Node> but returns array<int, phpOMS\\Algorithm\\PathFinding\\Node\\|null#'
-
message: "#^Cannot call method getTimestamp\\(\\) on DateTime\\|null\\.$#"
path: *Algorithm/JobScheduling/Weighted.php