From d754a11139f1d6bc82829af937f46af800bafaf2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 30 Mar 2018 14:22:05 +0200 Subject: [PATCH] Add phpstan bootstrap --- Config/phpstan.neon | 20 ++++++++++---------- Config/phpstan.php | 4 ++++ 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 Config/phpstan.php diff --git a/Config/phpstan.neon b/Config/phpstan.neon index 8999e42..3a10439 100644 --- a/Config/phpstan.neon +++ b/Config/phpstan.neon @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/Config/phpstan.php b/Config/phpstan.php new file mode 100644 index 0000000..d318452 --- /dev/null +++ b/Config/phpstan.php @@ -0,0 +1,4 @@ +