浏览代码

Ignore phpstan error

Jordi Boggiano 5 年之前
父节点
当前提交
12a6375548
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      phpstan/config.neon

+ 3 - 0
phpstan/config.neon

@@ -17,6 +17,9 @@ parameters:
         # variable defined in eval
         - '~^Undefined variable: \$res$~'
 
+        # erroneous detection of missing const, see https://github.com/phpstan/phpstan/issues/2960
+        - '~^Access to undefined constant ZipArchive::LIBZIP_VERSION.$~'
+
         # we don't have different constructors for parent/child
         - '~^Unsafe usage of new static\(\)\.$~'