about summary refs log tree commit diff stats
path: root/phpstan.neon
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-06-15 21:29:22 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-06-15 21:29:22 +0300
commita15fe2d871772c78cacce00530211c391d52508e (patch)
treeb0b44f1d88a7ae36f23f8f86613d0daf60cc0999 /phpstan.neon
parent23712d1e078fb065cd32f32b007da8f46619b55a (diff)
downloadthe-epube-a15fe2d871772c78cacce00530211c391d52508e.tar.gz
the-epube-a15fe2d871772c78cacce00530211c391d52508e.tar.xz
fix tests
Diffstat (limited to 'phpstan.neon')
-rw-r--r--phpstan.neon2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpstan.neon b/phpstan.neon
index 678dbbd..7542412 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -9,6 +9,8 @@ parameters:
       # set_include_path detection issue
       - message: '#"(autoload|common)\.php"#'
         identifier: requireOnce.fileNotFound
+      # allow passing a 'strlen' string, etc. as the array_filter callback
+      - "/Parameter #2 \\$callback of function array_filter expects .+ '.+' given/"
    excludePaths:
       - node_modules/*
       - vendor/**/*