From 84e414d889d3f2bfaa4a7f5867d5600f6a6882b1 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 5 Feb 2020 21:08:44 +0100 Subject: [PATCH] update baseline --- Config/phpstan-baseline.neon | 50 +++++++++++++++++++++--------------- Config/phpstan.neon | 2 ++ 2 files changed, 32 insertions(+), 20 deletions(-) diff --git a/Config/phpstan-baseline.neon b/Config/phpstan-baseline.neon index f4226d0..e63a33c 100644 --- a/Config/phpstan-baseline.neon +++ b/Config/phpstan-baseline.neon @@ -227,11 +227,6 @@ parameters: count: 3 path: Modules/Database/Controller/BackendController.php - - - message: "#^Undefined variable\\: \\$builder$#" - count: 2 - path: Modules/DatabaseEditor/Controller/ApiController.php - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" count: 1 @@ -282,11 +277,6 @@ parameters: count: 1 path: Modules/Exchange/Interfaces/GSD/Importer.php - - - message: "#^Parameter \\#1 \\$dbdata of static method phpOMS\\\\DataStorage\\\\Database\\\\Connection\\\\ConnectionFactory\\:\\:create\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: Modules/Exchange/Interfaces/GSD/Importer.php - - message: "#^Property Modules\\\\Exchange\\\\Interfaces\\\\GSD\\\\Importer\\:\\:\\$remote \\(Modules\\\\Exchange\\\\Interfaces\\\\GSD\\\\ConnectionInterface\\) does not accept phpOMS\\\\DataStorage\\\\Database\\\\Connection\\\\ConnectionAbstract\\.$#" count: 1 @@ -547,6 +537,16 @@ parameters: count: 1 path: Modules/Helper/Controller/ApiController.php + - + message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:uploadFiles\\(\\)\\.$#" + count: 2 + path: Modules/Helper/Controller/ApiController.php + + - + message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createMediaCollectionFromMedia\\(\\)\\.$#" + count: 2 + path: Modules/Helper/Controller/ApiController.php + - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createAccountModelPermission\\(\\)\\.$#" count: 2 @@ -1277,6 +1277,21 @@ parameters: count: 1 path: phpOMS/DataStorage/Cookie/CookieJar.php + - + message: "#^Parameter \\#1 \\$dbdata of class phpOMS\\\\DataStorage\\\\Database\\\\Connection\\\\MysqlConnection constructor expects array\\('db' \\=\\> string, 'host' \\=\\> string, 'port' \\=\\> int, 'login' \\=\\> string, 'password' \\=\\> string, 'database' \\=\\> string, 'prefix' \\=\\> string\\), array\\('db' \\=\\> string, \\?'host' \\=\\> string, \\?'port' \\=\\> int, \\?'login' \\=\\> string, \\?'password' \\=\\> string, 'database' \\=\\> string, 'prefix' \\=\\> string\\) given\\.$#" + count: 1 + path: phpOMS/DataStorage/Database/Connection/ConnectionFactory.php + + - + message: "#^Parameter \\#1 \\$dbdata of class phpOMS\\\\DataStorage\\\\Database\\\\Connection\\\\PostgresConnection constructor expects array\\('db' \\=\\> string, 'host' \\=\\> string, 'port' \\=\\> int, 'login' \\=\\> string, 'password' \\=\\> string, 'database' \\=\\> string, 'prefix' \\=\\> string\\), array\\('db' \\=\\> string, \\?'host' \\=\\> string, \\?'port' \\=\\> int, \\?'login' \\=\\> string, \\?'password' \\=\\> string, 'database' \\=\\> string, 'prefix' \\=\\> string\\) given\\.$#" + count: 1 + path: phpOMS/DataStorage/Database/Connection/ConnectionFactory.php + + - + message: "#^Parameter \\#1 \\$dbdata of class phpOMS\\\\DataStorage\\\\Database\\\\Connection\\\\SqlServerConnection constructor expects array\\('db' \\=\\> string, 'host' \\=\\> string, 'port' \\=\\> int, 'login' \\=\\> string, 'password' \\=\\> string, 'database' \\=\\> string, 'prefix' \\=\\> string\\), array\\('db' \\=\\> string, \\?'host' \\=\\> string, \\?'port' \\=\\> int, \\?'login' \\=\\> string, \\?'password' \\=\\> string, 'database' \\=\\> string, 'prefix' \\=\\> string\\) given\\.$#" + count: 1 + path: phpOMS/DataStorage/Database/Connection/ConnectionFactory.php + - message: "#^Argument of an invalid type string supplied for foreach, only iterables are supported\\.$#" count: 4 @@ -1357,11 +1372,6 @@ parameters: count: 1 path: phpOMS/DataStorage/Database/Schema/Builder.php - - - message: "#^Function session_set_cookie_params invoked with 6 parameters, 1\\-5 required\\.$#" - count: 1 - path: phpOMS/DataStorage/Session/HttpSession.php - - message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" count: 3 @@ -1482,11 +1492,6 @@ parameters: count: 1 path: phpOMS/Message/Mail/Mail.php - - - message: "#^Access to an undefined property phpOMS\\\\Message\\\\RequestAbstract\\:\\:\\$files\\.$#" - count: 1 - path: phpOMS/Message/RequestAbstract.php - - message: "#^Class phpOMS\\\\Message\\\\Socket\\\\Request constructor invoked with 1 parameter, 0 required\\.$#" count: 1 @@ -1782,6 +1787,11 @@ parameters: count: 2 path: phpOMS/System/File/Local/FileAbstract.php + - + message: "#^Result of \\|\\| is always true\\.$#" + count: 1 + path: phpOMS/System/File/Storage.php + - message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" count: 2 diff --git a/Config/phpstan.neon b/Config/phpstan.neon index 6fbde10..7252dc9 100755 --- a/Config/phpstan.neon +++ b/Config/phpstan.neon @@ -8,6 +8,8 @@ parameters: excludes_analyse: - *.tpl.php - */tests/* + - */Modules/Media/Files/* + - */d0cbb361b14ac3ef32486f0a09ab937d/* - */test/* - *Test.php - *Routes.php