diff --git a/Config/phpstan-baseline.neon b/Config/phpstan-baseline.neon index d608d60..9b601bc 100644 --- a/Config/phpstan-baseline.neon +++ b/Config/phpstan-baseline.neon @@ -1,3 +1,5 @@ + + parameters: ignoreErrors: - @@ -30,16 +32,6 @@ parameters: count: 5 path: Modules/AccountsReceivable/Controller/BackendController.php - - - message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\BuilderAbstract\\:\\:insert\\(\\)\\.$#" - count: 1 - path: Modules/Address/Admin/Installer.php - - - - message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\BuilderAbstract\\:\\:insert\\(\\)\\.$#" - count: 1 - path: Modules/Admin/Admin/Installer.php - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:apiProfileCreateDbEntry\\(\\)\\.$#" count: 1 @@ -55,11 +47,6 @@ parameters: count: 8 path: Modules/Admin/Controller/BackendController.php - - - message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\BuilderAbstract\\:\\:select\\(\\)\\.$#" - count: 1 - path: Modules/Admin/Models/AccountMapper.php - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" count: 2 @@ -650,11 +637,6 @@ parameters: count: 1 path: Modules/HumanResourceManagement/Models/EmployeeMapper.php - - - message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\BuilderAbstract\\:\\:select\\(\\)\\.$#" - count: 1 - path: Modules/HumanResourceManagement/Models/EmployeeMapper.php - - message: "#^Property Modules\\\\HumanResourceManagement\\\\Models\\\\StaffList\\:\\:\\$dbPool has unknown class phpOMS\\\\DataStorage\\\\Database\\\\Pool as its type\\.$#" count: 1 @@ -770,11 +752,6 @@ parameters: count: 1 path: Modules/HumanResourceTimeRecording/Models/SessionElement.php - - - message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\BuilderAbstract\\:\\:select\\(\\)\\.$#" - count: 2 - path: Modules/HumanResourceTimeRecording/Models/SessionMapper.php - - message: "#^Call to an undefined method phpOMS\\\\Module\\\\ModuleAbstract\\:\\:createNavigationMid\\(\\)\\.$#" count: 1 @@ -1135,11 +1112,6 @@ parameters: count: 1 path: Modules/Tasks/Models/TaskElement.php - - - message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\BuilderAbstract\\:\\:count\\(\\)\\.$#" - count: 1 - path: Modules/Tasks/Models/TaskMapper.php - - message: "#^Method Modules\\\\WarehouseManagement\\\\Models\\\\Arrival\\:\\:getDate\\(\\) should return DateTime but returns DateTime\\|null\\.$#" count: 1 @@ -1250,6 +1222,36 @@ parameters: count: 1 path: phpOMS/Algorithm/Knapsack/Backpack.php + - + message: "#^Method phpOMS\\\\Algorithm\\\\PathFinding\\\\Grid\\:\\:getNeighbors\\(\\) should return array\\ but returns array\\\\.$#" + 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 + path: phpOMS/Algorithm/PathFinding/JumpPointSearch.php + + - + message: "#^Method phpOMS\\\\Algorithm\\\\PathFinding\\\\JumpPointSearch\\:\\:findNeighborsDiagonal\\(\\) should return array\\ but returns array\\\\.$#" + count: 1 + path: phpOMS/Algorithm/PathFinding/JumpPointSearch.php + + - + message: "#^Method phpOMS\\\\Algorithm\\\\PathFinding\\\\JumpPointSearch\\:\\:findNeighborsDiagonalOneObstacle\\(\\) should return array\\ but returns array\\\\.$#" + count: 1 + path: phpOMS/Algorithm/PathFinding/JumpPointSearch.php + + - + message: "#^Method phpOMS\\\\Algorithm\\\\PathFinding\\\\JumpPointSearch\\:\\:findNeighborsDiagonalNoObstacle\\(\\) should return array\\ but returns array\\\\.$#" + count: 1 + path: phpOMS/Algorithm/PathFinding/JumpPointSearch.php + - message: "#^Parameter \\#1 \\$node of static method phpOMS\\\\Algorithm\\\\PathFinding\\\\JumpPointSearch\\:\\:jumpStraight\\(\\) expects phpOMS\\\\Algorithm\\\\PathFinding\\\\JumpPointNode\\|null, phpOMS\\\\Algorithm\\\\PathFinding\\\\Node\\|null given\\.$#" count: 3 @@ -1275,21 +1277,6 @@ parameters: count: 1 path: phpOMS/Config/SettingsAbstract.php - - - message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\BuilderAbstract\\:\\:into\\(\\)\\.$#" - count: 3 - path: phpOMS/DataStorage/Database/DataMapperAbstract.php - - - - message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\BuilderAbstract\\:\\:delete\\(\\)\\.$#" - count: 3 - path: phpOMS/DataStorage/Database/DataMapperAbstract.php - - - - message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\BuilderAbstract\\:\\:update\\(\\)\\.$#" - count: 4 - path: phpOMS/DataStorage/Database/DataMapperAbstract.php - - message: "#^Argument of an invalid type string supplied for foreach, only iterables are supported\\.$#" count: 4 @@ -1301,17 +1288,12 @@ parameters: path: phpOMS/DataStorage/Database/DataMapperAbstract.php - - message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\BuilderAbstract\\:\\:select\\(\\)\\.$#" - count: 4 - path: phpOMS/DataStorage/Database/DataMapperAbstract.php - - - - message: "#^Method phpOMS\\\\DataStorage\\\\Database\\\\DataMapperAbstract\\:\\:getConditionals\\(\\) with return type void returns mixed but should not return anything\\.$#" + message: "#^Parameter \\#1 \\.\\.\\.\\$columns of method phpOMS\\\\DataStorage\\\\Database\\\\Query\\\\Builder\\:\\:select\\(\\) expects array\\, string given\\.$#" count: 1 path: phpOMS/DataStorage/Database/DataMapperAbstract.php - - message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\BuilderAbstract\\:\\:random\\(\\)\\.$#" + message: "#^Method phpOMS\\\\DataStorage\\\\Database\\\\DataMapperAbstract\\:\\:getConditionals\\(\\) with return type void returns mixed but should not return anything\\.$#" count: 1 path: phpOMS/DataStorage/Database/DataMapperAbstract.php @@ -1421,7 +1403,7 @@ parameters: path: phpOMS/Math/Numerics/Interpolation/CubicSplineInterpolation.php - - message: "#^Method phpOMS\\\\Math\\\\Parser\\\\Evaluator\\:\\:shuntingYard\\(\\) should return array\\ but returns array\\\\.$#" + message: "#^Method phpOMS\\\\Math\\\\Parser\\\\Evaluator\\:\\:shuntingYard\\(\\) should return array\\ but returns array\\\\.$#" count: 1 path: phpOMS/Math/Parser/Evaluator.php @@ -1611,64 +1593,19 @@ parameters: path: phpOMS/Stdlib/Base/Iban.php - - message: "#^Call to an undefined method phpOMS\\\\Stdlib\\\\Graph\\\\Node\\:\\:getNeighbors\\(\\)\\.$#" + message: "#^PHPDoc tag @return with type float\\|int is not subtype of native type int\\.$#" count: 1 - path: phpOMS/Stdlib/Graph/BinaryTree.php + path: phpOMS/Stdlib/Graph/Edge.php - - message: "#^Method phpOMS\\\\Stdlib\\\\Graph\\\\BinaryTree\\:\\:getRight\\(\\) should return phpOMS\\\\Stdlib\\\\Graph\\\\Node but returns phpOMS\\\\Stdlib\\\\Graph\\\\Node\\|null\\.$#" + message: "#^Argument of an invalid type bool supplied for foreach, only iterables are supported\\.$#" count: 1 - path: phpOMS/Stdlib/Graph/BinaryTree.php + path: phpOMS/Stdlib/Graph/Graph.php - - message: "#^Strict comparison using \\=\\=\\= between phpOMS\\\\Stdlib\\\\Graph\\\\Node and null will always evaluate to false\\.$#" - count: 2 - path: phpOMS/Stdlib/Graph/BinaryTree.php - - - - message: "#^Cannot assign new offset to array\\|phpOMS\\\\Stdlib\\\\Graph\\\\Node\\.$#" + message: "#^Cannot call method getId\\(\\) on string\\.$#" count: 1 - path: phpOMS/Stdlib/Graph/BinaryTree.php - - - - message: "#^Parameter \\#1 \\$base of method phpOMS\\\\Stdlib\\\\Graph\\\\BinaryTree\\:\\:getLeft\\(\\) expects phpOMS\\\\Stdlib\\\\Graph\\\\Node, phpOMS\\\\Stdlib\\\\Graph\\\\Node\\|null given\\.$#" - count: 2 - path: phpOMS/Stdlib/Graph/BinaryTree.php - - - - message: "#^Parameter \\#1 \\$base of method phpOMS\\\\Stdlib\\\\Graph\\\\BinaryTree\\:\\:getRight\\(\\) expects phpOMS\\\\Stdlib\\\\Graph\\\\Node, phpOMS\\\\Stdlib\\\\Graph\\\\Node\\|null given\\.$#" - count: 2 - path: phpOMS/Stdlib/Graph/BinaryTree.php - - - - message: "#^Parameter \\#1 \\$base of method phpOMS\\\\Stdlib\\\\Graph\\\\BinaryTree\\:\\:getLeft\\(\\) expects phpOMS\\\\Stdlib\\\\Graph\\\\Node, null given\\.$#" - count: 1 - path: phpOMS/Stdlib/Graph/BinaryTree.php - - - - message: "#^Parameter \\#1 \\$base of method phpOMS\\\\Stdlib\\\\Graph\\\\BinaryTree\\:\\:getRight\\(\\) expects phpOMS\\\\Stdlib\\\\Graph\\\\Node, null given\\.$#" - count: 1 - path: phpOMS/Stdlib/Graph/BinaryTree.php - - - - message: "#^Strict comparison using \\=\\=\\= between phpOMS\\\\Stdlib\\\\Graph\\\\Node and null will always evaluate to false\\.$#" - count: 2 - path: phpOMS/Stdlib/Graph/Tree.php - - - - message: "#^Parameter \\#1 \\.\\.\\.\\$arg1 of function min expects array, \\(array\\\\)\\|int given\\.$#" - count: 1 - path: phpOMS/Stdlib/Graph/Tree.php - - - - message: "#^Call to an undefined method phpOMS\\\\Stdlib\\\\Graph\\\\Tree\\:\\:getLevel\\(\\)\\.$#" - count: 1 - path: phpOMS/Stdlib/Graph/Tree.php - - - - message: "#^Function callback not found\\.$#" - count: 1 - path: phpOMS/Stdlib/Graph/Tree.php + path: phpOMS/Stdlib/Graph/Graph.php - message: "#^Strict comparison using \\=\\=\\= between array and false will always evaluate to false\\.$#"