diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2024-11-13 18:38:32 +0000 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2024-11-13 18:38:32 +0000 |
| commit | 394d606fe977a331f733c62e5509469c2eb3ef31 (patch) | |
| tree | 27832a131eafec209a8de1361c35c69baa45231f /phpstan.neon | |
| parent | 6273e26ea463e2762f2d736455f4912de7171cfa (diff) | |
| parent | 859ce4d7f69a46716a10eacc485ffaf9867a76d4 (diff) | |
Merge branch 'feature/phpstan-2.0.x' into 'master'
PHPStan 2.0.x
See merge request tt-rss/tt-rss!74
Diffstat (limited to 'phpstan.neon')
| -rw-r--r-- | phpstan.neon | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/phpstan.neon b/phpstan.neon index 8b0c352a2..74daee0ce 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -5,8 +5,18 @@ parameters: maximumNumberOfProcesses: 4 reportUnmatchedIgnoredErrors: false ignoreErrors: - - '#Constant.*\b(SUBSTRING_FOR_DATE|SCHEMA_VERSION|SELF_USER_AGENT|LABEL_BASE_INDEX|PLUGIN_FEED_BASE_INDEX)\b.*not found#' - - '#Comparison operation ">" between int<1, max> and 0 is always true.#' + # set_include_path detection issue + - message: '#"(autoload|colors|config|errorhandler|login_form|sessions)\.php"#' + identifier: requireOnce.fileNotFound + + # undetected as DOMElement + - '#Call to an undefined method DOMNode::#' + - '#Access to an undefined property DOMNode::#' + - '#expects DOMElement, DOMNode given#' + + # allow passing a 'strlen' string, etc. as the array_filter callback + - "/Parameter #2 \\$callback of function array_filter expects .+ '.+' given/" + - message: '##' paths: - lib/* |