Browse Source

Fix phpstan config

Jordi Boggiano 4 years ago
parent
commit
e9a2f922d5
2 changed files with 1 additions and 9 deletions
  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\(\)\.$~'