Skip to content

Commit

Permalink
Update phpstan baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Mar 22, 2024
1 parent 9de4e33 commit 95849d9
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 5 deletions.
10 changes: 10 additions & 0 deletions phpstan-baseline-7x.neon
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ parameters:
count: 1
path: library/Icingadb/Data/PivotTable.php

-
message: "#^Parameter \\#1 \\$input of function array_keys expects array, mixed given\\.$#"
count: 1
path: library/Icingadb/Data/VolatileCsvResults.php

-
message: "#^Parameter \\#1 \\$input of function array_values expects array, mixed given\\.$#"
count: 1
path: library/Icingadb/Data/VolatileCsvResults.php

-
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
count: 1
Expand Down
10 changes: 10 additions & 0 deletions phpstan-baseline-8x.neon
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ parameters:
count: 1
path: library/Icingadb/Data/PivotTable.php

-
message: "#^Parameter \\#1 \\$array of function array_keys expects array, mixed given\\.$#"
count: 1
path: library/Icingadb/Data/VolatileCsvResults.php

-
message: "#^Parameter \\#1 \\$array of function array_values expects array, mixed given\\.$#"
count: 1
path: library/Icingadb/Data/VolatileCsvResults.php

-
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
count: 1
Expand Down
55 changes: 50 additions & 5 deletions phpstan-baseline-standard.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2735,6 +2735,11 @@ parameters:
count: 1
path: library/Icingadb/Data/JsonResultSet.php

-
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\JsonResultSet\\:\\:formatValue\\(\\) has no return type specified\\.$#"
count: 1
path: library/Icingadb/Data/JsonResultSet.php

-
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\JsonResultSet\\:\\:formatValue\\(\\) has parameter \\$value with no type specified\\.$#"
count: 1
Expand Down Expand Up @@ -2790,6 +2795,51 @@ parameters:
count: 1
path: library/Icingadb/Data/PivotTable.php

-
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileCsvResults\\:\\:extractKeysAndValues\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/Icingadb/Data/VolatileCsvResults.php

-
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileCsvResults\\:\\:formatValue\\(\\) has parameter \\$value with no type specified\\.$#"
count: 1
path: library/Icingadb/Data/VolatileCsvResults.php

-
message: "#^Parameter \\#1 \\$key of method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileCsvResults\\:\\:formatValue\\(\\) expects string, mixed given\\.$#"
count: 1
path: library/Icingadb/Data/VolatileCsvResults.php

-
message: "#^Parameter \\#1 \\$model of method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileCsvResults\\:\\:extractKeysAndValues\\(\\) expects ipl\\\\Orm\\\\Model, mixed given\\.$#"
count: 1
path: library/Icingadb/Data/VolatileCsvResults.php

-
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileJsonResults\\:\\:createObject\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/Icingadb/Data/VolatileJsonResults.php

-
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileJsonResults\\:\\:formatValue\\(\\) has no return type specified\\.$#"
count: 1
path: library/Icingadb/Data/VolatileJsonResults.php

-
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileJsonResults\\:\\:formatValue\\(\\) has parameter \\$value with no type specified\\.$#"
count: 1
path: library/Icingadb/Data/VolatileJsonResults.php

-
message: "#^Parameter \\#1 \\$key of method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileJsonResults\\:\\:formatValue\\(\\) expects string, mixed given\\.$#"
count: 1
path: library/Icingadb/Data/VolatileJsonResults.php

-
message: "#^Parameter \\#1 \\$model of method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileJsonResults\\:\\:createObject\\(\\) expects ipl\\\\Orm\\\\Model, mixed given\\.$#"
count: 1
path: library/Icingadb/Data/VolatileJsonResults.php

-
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Hook\\\\ActionsHook\\\\ObjectActionsHook\\:\\:init\\(\\) has no return type specified\\.$#"
count: 1
Expand Down Expand Up @@ -5405,11 +5455,6 @@ parameters:
count: 1
path: library/Icingadb/Web/Controller.php

-
message: "#^Parameter \\#1 \\$limit of method ipl\\\\Orm\\\\Query\\:\\:limit\\(\\) expects int\\|null, mixed given\\.$#"
count: 1
path: library/Icingadb/Web/Controller.php

-
message: "#^Parameter \\#1 \\$queryString of method Icinga\\\\Module\\\\Icingadb\\\\Web\\\\Controller\\:\\:parseRestriction\\(\\) expects string, array\\<string\\> given\\.$#"
count: 3
Expand Down

0 comments on commit 95849d9

Please sign in to comment.