diff --git a/Config/phpcs.xml b/Config/phpcs.xml index 92e21fa..cc4b2d4 100755 --- a/Config/phpcs.xml +++ b/Config/phpcs.xml @@ -25,6 +25,7 @@ */Routes/* */Hooks/* */node_modules/* +*/Modules/Media/Files/* @@ -93,6 +94,7 @@ *EigenvalueDecomposition.php + *phpOMS/Message/Http/Request.php diff --git a/Config/phpstan-baseline.neon b/Config/phpstan-baseline.neon index e63a33c..e3fbfe1 100644 --- a/Config/phpstan-baseline.neon +++ b/Config/phpstan-baseline.neon @@ -1,5 +1,3 @@ - - parameters: ignoreErrors: - @@ -17,61 +15,11 @@ parameters: count: 2 path: Install/WebApplication.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 10 - path: Modules/Accounting/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 5 - path: Modules/AccountsPayable/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 5 - path: Modules/AccountsReceivable/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:apiProfileCreateDbEntry\\(\\)\\.$#" - count: 1 - path: Modules/Admin/Controller/ApiController.php - - message: "#^Argument of an invalid type array\\\\|false supplied for foreach, only iterables are supported\\.$#" count: 1 path: Modules/Admin/Controller/ApiController.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 8 - path: Modules/Admin/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 2 - path: Modules/Arrival/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/AssetManagement/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 6 - path: Modules/Auditor/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/Balance/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/Billing/Controller/BackendController.php - - message: "#^Method Modules\\\\Billing\\\\Models\\\\Invoice\\:\\:getCreatedAt\\(\\) should return DateTime but returns DateTime\\|null\\.$#" count: 1 @@ -82,16 +30,6 @@ parameters: count: 1 path: Modules/Billing/Models/Invoice.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/BudgetManagement/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/Calendar/Controller/BackendController.php - - message: "#^Method Modules\\\\Calendar\\\\Models\\\\Calendar\\:\\:addEvent\\(\\) should return int but returns int\\|null\\.$#" count: 1 @@ -142,21 +80,6 @@ parameters: count: 1 path: Modules/Calendar/Models/Schedule.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 4 - path: Modules/Chart/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/Checklist/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/ClientManagement/Controller/BackendController.php - - message: "#^Access to an undefined property Modules\\\\ClientManagement\\\\Models\\\\Client\\:\\:\\$taxId\\.$#" count: 2 @@ -167,11 +90,6 @@ parameters: count: 1 path: Modules/ClientManagement/Models/Client.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 2 - path: Modules/Comments/Controller/BackendController.php - - message: "#^Instantiated class Modules\\\\Comments\\\\Controller\\\\FormValidation not found\\.$#" count: 1 @@ -192,66 +110,21 @@ parameters: count: 1 path: Modules/Comments/Controller/BackendController.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/ContractLifecycleManagement/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/CostCenterAccounting/Controller/BackendController.php - - message: "#^Property Modules\\\\CostCenterAccounting\\\\Models\\\\CostCenter\\:\\:\\$parent \\(int\\|Modules\\\\CostCenterAccounting\\\\Models\\\\CostCenter\\|null\\) does not accept string\\.$#" count: 1 path: Modules/CostCenterAccounting/Models/CostCenter.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/CostObjectAccounting/Controller/BackendController.php - - message: "#^Property Modules\\\\CostObjectAccounting\\\\Models\\\\CostObject\\:\\:\\$parent \\(int\\|Modules\\\\CostObjectAccounting\\\\Models\\\\CostObject\\|null\\) does not accept string\\.$#" count: 1 path: Modules/CostObjectAccounting/Models/CostObject.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/Dashboard/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/Database/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/DatabaseEditor/Controller/BackendController.php - - message: "#^Parameter \\#1 \\$media of static method Modules\\\\Draw\\\\Models\\\\DrawImage\\:\\:fromMedia\\(\\) expects Modules\\\\Media\\\\Models\\\\Media, Modules\\\\Media\\\\Models\\\\Media\\|null given\\.$#" count: 1 path: Modules/Draw/Controller/ApiController.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/Draw/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/Editor/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/EventManagement/Controller/BackendController.php - - message: "#^Method Modules\\\\EventManagement\\\\Models\\\\Event\\:\\:getCreatedAt\\(\\) should return DateTime but returns DateTime\\|null\\.$#" count: 1 @@ -262,11 +135,6 @@ parameters: count: 1 path: Modules/Exchange/Controller/BackendController.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 5 - path: Modules/Exchange/Controller/BackendController.php - - message: "#^Method Modules\\\\Exchange\\\\Controller\\\\BackendController\\:\\:viewExchangeDashboard\\(\\) with return type void returns phpOMS\\\\Views\\\\View but should not return anything\\.$#" count: 1 @@ -283,8 +151,8 @@ parameters: path: Modules/Exchange/Interfaces/GSD/Importer.php - - message: "#^Call to static method setConnection\\(\\) on an unknown class Modules\\\\Exchange\\\\Interfaces\\\\GSD\\\\DataMapperAbstract\\.$#" - count: 4 + message: "#^Parameter \\#1 \\$con of static method phpOMS\\\\DataStorage\\\\Database\\\\DataMapperAbstract\\:\\:setConnection\\(\\) expects phpOMS\\\\DataStorage\\\\Database\\\\Connection\\\\ConnectionAbstract, Modules\\\\Exchange\\\\Interfaces\\\\GSD\\\\ConnectionInterface given\\.$#" + count: 2 path: Modules/Exchange/Interfaces/GSD/Importer.php - @@ -332,43 +200,13 @@ parameters: count: 1 path: Modules/Exchange/Interfaces/GSD/Importer.php - - - message: "#^Access to constant CUSTOMER on an unknown class Modules\\\\Exchange\\\\Interfaces\\\\OMS\\\\Model\\\\ExchangeType\\.$#" - count: 1 - path: Modules/Exchange/Interfaces/OMS/Importer.php - - - - message: "#^Access to constant SUPPLIER on an unknown class Modules\\\\Exchange\\\\Interfaces\\\\OMS\\\\Model\\\\ExchangeType\\.$#" - count: 1 - path: Modules/Exchange/Interfaces/OMS/Importer.php - - - - message: "#^Access to constant ACCOUNT on an unknown class Modules\\\\Exchange\\\\Interfaces\\\\OMS\\\\Model\\\\ExchangeType\\.$#" - count: 1 - path: Modules/Exchange/Interfaces/OMS/Importer.php - - - - message: "#^Access to constant COSTCENTER on an unknown class Modules\\\\Exchange\\\\Interfaces\\\\OMS\\\\Model\\\\ExchangeType\\.$#" - count: 1 - path: Modules/Exchange/Interfaces/OMS/Importer.php - - - - message: "#^Access to constant COSTOBJECT on an unknown class Modules\\\\Exchange\\\\Interfaces\\\\OMS\\\\Model\\\\ExchangeType\\.$#" - count: 1 - path: Modules/Exchange/Interfaces/OMS/Importer.php - - - - message: "#^Access to constant ARTICLE on an unknown class Modules\\\\Exchange\\\\Interfaces\\\\OMS\\\\Model\\\\ExchangeType\\.$#" - count: 1 - path: Modules/Exchange/Interfaces/OMS/Importer.php - - message: "#^Call to an undefined method Modules\\\\Exchange\\\\Interfaces\\\\OMS\\\\Importer\\:\\:importArticle\\(\\)\\.$#" count: 1 path: Modules/Exchange/Interfaces/OMS/Importer.php - - message: "#^Access to constant INVOICE on an unknown class Modules\\\\Exchange\\\\Interfaces\\\\OMS\\\\Model\\\\ExchangeType\\.$#" + message: "#^Access to undefined constant Modules\\\\Exchange\\\\Models\\\\ExchangeType\\:\\:INVOICE\\.$#" count: 1 path: Modules/Exchange/Interfaces/OMS/Importer.php @@ -537,26 +375,6 @@ 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 - path: Modules/Helper/Controller/ApiController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 4 - path: Modules/Helper/Controller/BackendController.php - - message: "#^Property Modules\\\\Helper\\\\Models\\\\Report\\:\\:\\$template has unknown class Modules\\\\Helper\\\\Models\\\\Media as its type\\.$#" count: 1 @@ -572,11 +390,6 @@ parameters: count: 1 path: Modules/HumanResourceManagement/Controller/ApiController.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 4 - path: Modules/HumanResourceManagement/Controller/BackendController.php - - message: "#^Property Modules\\\\HumanResourceManagement\\\\Models\\\\Employee\\:\\:\\$profile has unknown class Modules\\\\HumanResourceManagement\\\\Models\\\\Profile as its type\\.$#" count: 1 @@ -682,31 +495,16 @@ parameters: count: 1 path: Modules/HumanResourceTimeRecording/Controller/ApiController.php - - - message: "#^Strict comparison using \\=\\=\\= between Modules\\\\HumanResourceTimeRecording\\\\Models\\\\Session and null will always evaluate to false\\.$#" - count: 1 - path: Modules/HumanResourceTimeRecording/Controller/ApiController.php - - message: "#^Call to method getProfile\\(\\) on an unknown class Modules\\\\HumanResourceTimeRecording\\\\Models\\\\Employee\\.$#" count: 2 path: Modules/HumanResourceTimeRecording/Controller/ApiController.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 4 - path: Modules/HumanResourceTimeRecording/Controller/BackendController.php - - message: "#^Instantiated class Modules\\\\HumanResourceTimeRecording\\\\Controller\\\\NullSession not found\\.$#" count: 1 path: Modules/HumanResourceTimeRecording/Controller/BackendController.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/HumanResourceTimeRecording/Controller/TimerecordingController.php - - message: "#^Property Modules\\\\HumanResourceTimeRecording\\\\Models\\\\Session\\:\\:\\$employee has unknown class Modules\\\\HumanResourceTimeRecording\\\\Models\\\\Employee as its type\\.$#" count: 1 @@ -752,31 +550,6 @@ parameters: count: 1 path: Modules/HumanResourceTimeRecording/Models/SessionElement.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/InvestmentManagement/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 7 - path: Modules/ItemManagement/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/Job/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/KPI/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 4 - path: Modules/Kanban/Controller/BackendController.php - - message: "#^PHPDoc tag @return with type int\\|phpOMS\\\\Account\\\\Account is not subtype of native type int\\.$#" count: 1 @@ -787,31 +560,11 @@ parameters: count: 2 path: Modules/Knowledgebase/Controller/ApiController.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 7 - path: Modules/Knowledgebase/Controller/BackendController.php - - message: "#^PHPDoc tag @return with type int\\|phpOMS\\\\Account\\\\Account is not subtype of native type int\\.$#" count: 1 path: Modules/Knowledgebase/Models/WikiDoc.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 5 - path: Modules/Marketing/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createAccountModelPermission\\(\\)\\.$#" - count: 1 - path: Modules/Media/Controller/ApiController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/Media/Controller/BackendController.php - - message: "#^PHPDoc tag @param for parameter \\$outputPath with type string\\|null is not subtype of native type string\\.$#" count: 1 @@ -837,31 +590,6 @@ parameters: count: 4 path: Modules/Media/Views/MediaView.php - - - message: "#^Strict comparison using \\=\\=\\= between string and null will always evaluate to false\\.$#" - count: 1 - path: Modules/Media/Views/MediaView.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 7 - path: Modules/Messages/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 4 - path: Modules/Monitoring/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:openNav\\(\\)\\.$#" - count: 1 - path: Modules/Navigation/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:openNav\\(\\)\\.$#" - count: 1 - path: Modules/Navigation/Controller/TimerecordingController.php - - message: "#^Call to an undefined method phpOMS\\\\Message\\\\RequestAbstract\\:\\:getHash\\(\\)\\.$#" count: 1 @@ -877,41 +605,11 @@ parameters: count: 2 path: Modules/News/Controller/ApiController.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 4 - path: Modules/News/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 9 - path: Modules/Organization/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/PL/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 4 - path: Modules/Production/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/Profile/Controller/BackendController.php - - message: "#^Method Modules\\\\Profile\\\\Models\\\\Profile\\:\\:getImage\\(\\) should return Modules\\\\Media\\\\Models\\\\Media but returns int\\|Modules\\\\Media\\\\Models\\\\Media\\|null\\.$#" count: 1 path: Modules/Profile/Models/Profile.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/ProjectManagement/Controller/BackendController.php - - message: "#^Property Modules\\\\ProjectManagement\\\\Models\\\\Project\\:\\:\\$media has unknown class Modules\\\\ProjectManagement\\\\Models\\\\Media as its type\\.$#" count: 1 @@ -982,11 +680,6 @@ parameters: count: 1 path: Modules/ProjectManagement/Models/Project.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 6 - path: Modules/Purchase/Controller/BackendController.php - - message: "#^Call to an undefined method Modules\\\\QA\\\\Models\\\\QAQuestion\\:\\:setBadges\\(\\)\\.$#" count: 1 @@ -1002,71 +695,21 @@ parameters: count: 1 path: Modules/QA/Controller/ApiController.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/QA/Controller/BackendController.php - - message: "#^Parameter \\$badge of method Modules\\\\QA\\\\Models\\\\QAQuestion\\:\\:addBadge\\(\\) has invalid typehint type Modules\\\\QA\\\\Models\\\\QABadge\\.$#" count: 1 path: Modules/QA/Models/QAQuestion.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 2 - path: Modules/ResearchDevelopment/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 19 - path: Modules/RiskManagement/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationSplash\\(\\)\\.$#" - count: 1 - path: Modules/SalesAnalysis/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/SalesAnalysis/Controller/BackendController.php - - message: "#^Call to an undefined method phpOMS\\\\Message\\\\RequestAbstract\\:\\:getRouteVerb\\(\\)\\.$#" count: 1 path: Modules/Search/Controller/ApiController.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 2 - path: Modules/Shipping/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 1 - path: Modules/StockTaking/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/SupplierManagement/Controller/BackendController.php - - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 6 - path: Modules/Support/Controller/BackendController.php - - message: "#^Access to an undefined property Modules\\\\Support\\\\Models\\\\Message\\:\\:\\$id\\.$#" count: 1 path: Modules/Support/Models/Message.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 3 - path: Modules/Surveys/Controller/BackendController.php - - message: "#^Call to static method get\\(\\) on an unknown class Modules\\\\Tag\\\\Controller\\\\TagMapper\\.$#" count: 4 @@ -1082,11 +725,6 @@ parameters: count: 1 path: Modules/Tag/Models/TagMapper.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 5 - path: Modules/Tasks/Controller/BackendController.php - - message: "#^PHPDoc tag @return with type void is incompatible with native type int\\.$#" count: 1 @@ -1172,11 +810,6 @@ parameters: count: 2 path: Modules/WarehouseManagement/Models/Warehouse.php - - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" - count: 5 - path: Modules/Workflow/Controller/BackendController.php - - message: "#^PHPDoc tag @var for property Socket\\\\Socketserver\\\\Application\\:\\:\\$type with type phpOMS\\\\Socket\\\\SocketType is incompatible with native type string\\.$#" count: 1 @@ -1222,11 +855,6 @@ parameters: count: 2 path: phpOMS/Algorithm/PathFinding/Grid.php - - - message: "#^Strict comparison using \\=\\=\\= between phpOMS\\\\Algorithm\\\\PathFinding\\\\JumpPointNode and null will always evaluate to false\\.$#" - count: 1 - path: phpOMS/Algorithm/PathFinding/JumpPointSearch.php - - message: "#^Method phpOMS\\\\Algorithm\\\\PathFinding\\\\JumpPointSearch\\:\\:findNeighborsStraight\\(\\) should return array\\ but returns array\\\\.$#" count: 1 @@ -1372,11 +1000,6 @@ parameters: count: 1 path: phpOMS/DataStorage/Database/Schema/Builder.php - - - message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" - count: 3 - path: phpOMS/Localization/Money.php - - message: "#^Result of \\|\\| is always false\\.$#" count: 1 @@ -1397,11 +1020,6 @@ parameters: count: 2 path: phpOMS/Math/Functions/Fibonacci.php - - - message: "#^Strict comparison using \\=\\=\\= between array\\ and false will always evaluate to false\\.$#" - count: 1 - path: phpOMS/Math/Number/Numbers.php - - message: "#^PHPDoc tag @param for parameter \\$leftDerivativeType with type float is incompatible with native type int\\.$#" count: 1 @@ -1427,26 +1045,11 @@ parameters: count: 1 path: phpOMS/Math/Statistic/MeasureOfDispersion.php - - - message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" - count: 1 - path: phpOMS/Message/Console/Request.php - - message: "#^Method phpOMS\\\\Message\\\\Console\\\\Request\\:\\:getMethod\\(\\) should return string but returns array\\|string\\.$#" count: 1 path: phpOMS/Message/Console/Request.php - - - message: "#^Strict comparison using \\=\\=\\= between resource and false will always evaluate to false\\.$#" - count: 1 - path: phpOMS/Message/Http/Rest.php - - - - message: "#^Strict comparison using \\=\\=\\= between int and false will always evaluate to false\\.$#" - count: 1 - path: phpOMS/Message/Http/Rest.php - - message: "#^Method phpOMS\\\\Message\\\\Mail\\\\EmailAbstract\\:\\:decode\\(\\) should return string but returns string\\|false\\.$#" count: 3 @@ -1597,16 +1200,6 @@ parameters: count: 1 path: phpOMS/Socket/SocketAbstract.php - - - message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" - count: 2 - path: phpOMS/Stdlib/Base/Iban.php - - - - message: "#^Strict comparison using \\=\\=\\= between array and false will always evaluate to false\\.$#" - count: 2 - path: phpOMS/System/File/Ftp/Directory.php - - message: "#^Parameter \\#2 \\$dir of static method phpOMS\\\\System\\\\File\\\\Ftp\\\\Directory\\:\\:size\\(\\) expects string, int\\|string given\\.$#" count: 1 @@ -1617,11 +1210,6 @@ parameters: count: 1 path: phpOMS/System/File/Ftp/Directory.php - - - message: "#^Strict comparison using \\=\\=\\= between int and false will always evaluate to false\\.$#" - count: 1 - path: phpOMS/System/File/Ftp/Directory.php - - message: "#^Argument of an invalid type array\\|false supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -1682,11 +1270,6 @@ parameters: count: 1 path: phpOMS/System/File/Ftp/File.php - - - message: "#^Strict comparison using \\=\\=\\= between int and false will always evaluate to false\\.$#" - count: 1 - path: phpOMS/System/File/Ftp/File.php - - message: "#^Call to an undefined static method phpOMS\\\\System\\\\File\\\\Ftp\\\\File\\:\\:ftpCreate\\(\\)\\.$#" count: 1 @@ -1792,21 +1375,6 @@ parameters: count: 1 path: phpOMS/System/File/Storage.php - - - message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" - count: 2 - path: phpOMS/Uri/Argument.php - - - - message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" - count: 1 - path: phpOMS/Uri/Http.php - - - - message: "#^Strict comparison using \\=\\=\\= between array\\ and false will always evaluate to false\\.$#" - count: 1 - path: phpOMS/Utils/Compression/LZW.php - - message: "#^Method phpOMS\\\\Utils\\\\Compression\\\\LZW\\:\\:decompress\\(\\) should return string but returns int\\|string\\.$#" count: 1 @@ -1817,141 +1385,21 @@ parameters: count: 2 path: phpOMS/Utils/Converter/Numeric.php - - - message: "#^Strict comparison using \\=\\=\\= between array\\ and false will always evaluate to false\\.$#" - count: 3 - path: phpOMS/Utils/Converter/Numeric.php - - - - message: "#^Strict comparison using \\=\\=\\= between array\\ and false will always evaluate to false\\.$#" - count: 1 - path: phpOMS/Utils/Encoding/Huffman/Huffman.php - - - - message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" - count: 2 - path: phpOMS/Utils/Encoding/Huffman/Huffman.php - - - - message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" - count: 2 - path: phpOMS/Utils/Git/Repository.php - - message: "#^Parameter \\$queries of method phpOMS\\\\Utils\\\\IO\\\\IODatabaseMapper\\:\\:select\\(\\) has invalid typehint type phpOMS\\\\Utils\\\\IO\\\\Builder\\.$#" count: 1 path: phpOMS/Utils/IO/IODatabaseMapper.php - - - message: "#^Instantiated class PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Xlsx not found\\.$#" - count: 2 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Instantiated class PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods not found\\.$#" - count: 2 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Instantiated class PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Xls not found\\.$#" - count: 2 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method setReadDataOnly\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods\\.$#" - count: 2 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method setReadDataOnly\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Xls\\.$#" - count: 2 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method setReadDataOnly\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Xlsx\\.$#" - count: 2 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method load\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods\\.$#" - count: 2 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method load\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Xls\\.$#" - count: 2 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method load\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Xlsx\\.$#" - count: 2 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - message: "#^Parameter \\$queries of method phpOMS\\\\Utils\\\\IO\\\\Spreadsheet\\\\SpreadsheetDatabaseMapper\\:\\:select\\(\\) has invalid typehint type phpOMS\\\\Utils\\\\IO\\\\Builder\\.$#" count: 1 path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - message: "#^Instantiated class PhpOffice\\\\PhpSpreadsheet\\\\Spreadsheet not found\\.$#" - count: 1 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method getProperties\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Spreadsheet\\.$#" - count: 1 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method getSheetCount\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Spreadsheet\\.$#" - count: 1 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - message: "#^Call to method execute\\(\\) on an unknown class phpOMS\\\\Utils\\\\IO\\\\Builder\\.$#" count: 1 path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - message: "#^Call to method createSheet\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Spreadsheet\\.$#" - count: 1 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method setActiveSheetIndex\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Spreadsheet\\.$#" - count: 1 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method save\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Writer\\\\Xlsx\\.$#" - count: 1 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Instantiated class PhpOffice\\\\PhpSpreadsheet\\\\Writer\\\\Xlsx not found\\.$#" - count: 1 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method save\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Writer\\\\Ods\\.$#" - count: 1 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Instantiated class PhpOffice\\\\PhpSpreadsheet\\\\Writer\\\\Ods not found\\.$#" - count: 1 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Call to method save\\(\\) on an unknown class PhpOffice\\\\PhpSpreadsheet\\\\Writer\\\\Xls\\.$#" - count: 1 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - - - message: "#^Instantiated class PhpOffice\\\\PhpSpreadsheet\\\\Writer\\\\Xls not found\\.$#" - count: 1 - path: phpOMS/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php - - message: "#^Cannot assign offset string to string\\.$#" count: 2 @@ -1972,19 +1420,9 @@ parameters: count: 1 path: phpOMS/Utils/TaskSchedule/Interval.php - - - message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" - count: 1 - path: phpOMS/Validation/Finance/Iban.php - - message: "#^Cannot access property \\$l11nManager on phpOMS\\\\ApplicationAbstract\\|null\\.$#" count: 1 path: phpOMS/Views/View.php - - - message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#" - count: 2 - path: phpOMS/Views/View.php - diff --git a/Config/phpstan.neon b/Config/phpstan.neon index 7252dc9..298c973 100755 --- a/Config/phpstan.neon +++ b/Config/phpstan.neon @@ -27,4 +27,8 @@ parameters: - */Routes/* - */Hooks/* - */node_modules/* - - */Modules/Shop/Admin/Install/Application/* \ No newline at end of file + - */Modules/Shop/Admin/Install/Application/* + ignoreErrors: + - '#[.]*PhpOffice\\PhpSpreadsheet\\[.]*#' + - '#^Call to an undefined method phpOMS\\Module\\ModuleAbstract::[.]*#' + - '#^Strict comparison using === between[.]*#'