From bf7ec6a7bd43dfb7370de994d60defbb57665d37 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 12 Sep 2018 22:20:21 +0200 Subject: [PATCH] Ignore more special cases ?-> --- Config/phpstan.neon | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Config/phpstan.neon b/Config/phpstan.neon index 4a5c33e..6aff806 100644 --- a/Config/phpstan.neon +++ b/Config/phpstan.neon @@ -3,6 +3,8 @@ parameters: - '#Access to protected property Web\\WebApplication::(.*)#' - '#Calling method prepare\(\) on possibly null value of type PDO\|null\.#' - '#Calling method lastInsertId\(\) on possibly null value of type PDO\|null\.#' + - '#Cannot call method prepare\(\) on PDO\|null\.#' + - '#Cannot call method beginTransaction\(\) on PDO\|null\.#' - '#Access to an undefined property phpOMS\\DataStorage\\DataStorageConnectionInterface::(.*)#' - '#Call to an undefined method phpOMS\\Module\\ModuleAbstract::(.*)#' - '#Access to an undefined property phpOMS\\ApplicationAbstract::(.*)#' @@ -17,4 +19,5 @@ parameters: excludes_analyse: - *.tpl.php - */tests/* - - */test/* \ No newline at end of file + - */test/* + - *Test.php \ No newline at end of file