1
0
Fork 0

Fix phpstan config

pull/8803/head
Jordi Boggiano 2020-04-22 10:37:21 +02:00
parent c0b0149040
commit e9a2f922d5
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 1 additions and 9 deletions

View File

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

View File

@ -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\(\)\.$~'