소스 검색

Fix phpstan config

Jordi Boggiano 4 년 전
부모
커밋
e9a2f922d5
2개의 변경된 파일1개의 추가작업 그리고 9개의 파일을 삭제
  1. 0 5
      phpstan/autoload.php
  2. 1 4
      phpstan/config.neon

+ 0 - 5
phpstan/autoload.php

@@ -1,5 +0,0 @@
-<?php
-
-require_once __DIR__ . '/../vendor/autoload.php';
-
-require_once __DIR__ . '/../src/bootstrap.php';

+ 1 - 4
phpstan/config.neon

@@ -1,7 +1,7 @@
 parameters:
     level: 1
     autoload_files:
-        - autoload.php
+        - '../src/bootstrap.php'
     excludes_analyse:
        - '../tests/Composer/Test/Fixtures/*'
        - '../tests/Composer/Test/Autoload/Fixtures/*'
@@ -22,9 +22,6 @@ 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\(\)\.$~'