Add phpstan bootstrap

This commit is contained in:
Dennis Eichhorn 2018-03-30 14:22:05 +02:00
parent 0cfb7b5b12
commit d754a11139
2 changed files with 14 additions and 10 deletions

View File

@ -1,10 +1,10 @@
parameters:
ignoreErrors:
- '#Access to protected property Web\WebApplication::\$[a-zA-Z0-9_]+#'
- '#Calling method prepare\(\) on possibly null value of type PDO\|null.#'
- '#Calling method lastInsertId\(\) on possibly null value of type PDO\|null.#'
- '#Class PHPUnit\\Framework\\TestCase not found and could not be autoloaded.#'
fileExtensions:
- php
excludes_analyse:
- *.tpl.php
parameters:
ignoreErrors:
- '#Access to protected property Web\WebApplication::\$[a-zA-Z0-9_]+#'
- '#Calling method prepare\(\) on possibly null value of type PDO\|null\.#'
- '#Calling method lastInsertId\(\) on possibly null value of type PDO\|null\.#'
fileExtensions:
- php
excludes_analyse:
- *.tpl.php
bootstrap: %currentWorkingDirectory%/Config/phpstan.php

4
Config/phpstan.php Normal file
View File

@ -0,0 +1,4 @@
<?php
require_once __DIR__ . '/../../vendor/autoload.php';
require_once __DIR__ . '/../../phpOMS/Autoloader.php';