From 5c01daec9293b3c1787c520c7ad639495387c624 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 7 Dec 2019 19:13:23 +0100 Subject: [PATCH] fix phpstan bugs --- Config/phpstan-baseline.neon | 5 ----- Config/reportLang.php | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Config/phpstan-baseline.neon b/Config/phpstan-baseline.neon index 10a2172..c3503bf 100644 --- a/Config/phpstan-baseline.neon +++ b/Config/phpstan-baseline.neon @@ -2720,11 +2720,6 @@ parameters: count: 2 path: phpOMS/Stdlib/Base/Iban.php - - - message: "#^Parameter \\#2 \\$timestamp of function date expects int, int\\|false given\\.$#" - count: 1 - path: phpOMS/Stdlib/Base/SmartDateTime.php - - message: "#^Call to an undefined method phpOMS\\\\Stdlib\\\\Graph\\\\Node\\:\\:getNeighbors\\(\\)\\.$#" count: 1 diff --git a/Config/reportLang.php b/Config/reportLang.php index 56b0e84..6c53623 100644 --- a/Config/reportLang.php +++ b/Config/reportLang.php @@ -1200,7 +1200,9 @@ return [ 'phpOMS\tests\Module\ModuleAbstractTest' => ['description' => 'Abstract module'], 'phpOMS\tests\Module\ModuleAbstractTest:testConstants' => ['description' => 'The constant values of the abstract module are overwritten by the extension', 'type' => 'framework'], + 'phpOMS\tests\Module\ModuleAbstractTest:testName' => ['description' => 'The name of the module can be returned', 'type' => 'framework'], 'phpOMS\tests\Module\ModuleAbstractTest:testDependencies' => ['description' => 'The dependencies of the module can be returned', 'type' => 'framework'], + 'phpOMS\tests\Module\ModuleAbstractTest:testProviding' => ['description' => 'The providing of the module can be returned', 'type' => 'framework'], 'phpOMS\tests\Module\ModuleAbstractTest:testInvalidLocalization' => ['description' => 'A invalid language or theme returns in an empty localization/language dataset', 'type' => 'framework'], 'phpOMS\tests\Module\ModuleAbstractTest:testFillJson' => ['description' => 'The module can automatically generate a json response based on provided data for the frontend', 'type' => 'framework'], 'phpOMS\tests\Module\ModuleAbstractTest:testFillJsonRaw' => ['description' => 'The module can automatically generate a json response based on provided data', 'type' => 'framework'],