Skip to content

Commit 95849d9

Browse files
committed
Update phpstan baselines
1 parent 9de4e33 commit 95849d9

File tree

3 files changed

+70
-5
lines changed

3 files changed

+70
-5
lines changed

phpstan-baseline-7x.neon

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ parameters:
105105
count: 1
106106
path: library/Icingadb/Data/PivotTable.php
107107

108+
-
109+
message: "#^Parameter \\#1 \\$input of function array_keys expects array, mixed given\\.$#"
110+
count: 1
111+
path: library/Icingadb/Data/VolatileCsvResults.php
112+
113+
-
114+
message: "#^Parameter \\#1 \\$input of function array_values expects array, mixed given\\.$#"
115+
count: 1
116+
path: library/Icingadb/Data/VolatileCsvResults.php
117+
108118
-
109119
message: "#^Parameter \\#2 \\$str of function explode expects string, mixed given\\.$#"
110120
count: 1

phpstan-baseline-8x.neon

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ parameters:
105105
count: 1
106106
path: library/Icingadb/Data/PivotTable.php
107107

108+
-
109+
message: "#^Parameter \\#1 \\$array of function array_keys expects array, mixed given\\.$#"
110+
count: 1
111+
path: library/Icingadb/Data/VolatileCsvResults.php
112+
113+
-
114+
message: "#^Parameter \\#1 \\$array of function array_values expects array, mixed given\\.$#"
115+
count: 1
116+
path: library/Icingadb/Data/VolatileCsvResults.php
117+
108118
-
109119
message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#"
110120
count: 1

phpstan-baseline-standard.neon

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2735,6 +2735,11 @@ parameters:
27352735
count: 1
27362736
path: library/Icingadb/Data/JsonResultSet.php
27372737

2738+
-
2739+
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\JsonResultSet\\:\\:formatValue\\(\\) has no return type specified\\.$#"
2740+
count: 1
2741+
path: library/Icingadb/Data/JsonResultSet.php
2742+
27382743
-
27392744
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\JsonResultSet\\:\\:formatValue\\(\\) has parameter \\$value with no type specified\\.$#"
27402745
count: 1
@@ -2790,6 +2795,51 @@ parameters:
27902795
count: 1
27912796
path: library/Icingadb/Data/PivotTable.php
27922797

2798+
-
2799+
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileCsvResults\\:\\:extractKeysAndValues\\(\\) return type has no value type specified in iterable type array\\.$#"
2800+
count: 1
2801+
path: library/Icingadb/Data/VolatileCsvResults.php
2802+
2803+
-
2804+
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileCsvResults\\:\\:formatValue\\(\\) has parameter \\$value with no type specified\\.$#"
2805+
count: 1
2806+
path: library/Icingadb/Data/VolatileCsvResults.php
2807+
2808+
-
2809+
message: "#^Parameter \\#1 \\$key of method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileCsvResults\\:\\:formatValue\\(\\) expects string, mixed given\\.$#"
2810+
count: 1
2811+
path: library/Icingadb/Data/VolatileCsvResults.php
2812+
2813+
-
2814+
message: "#^Parameter \\#1 \\$model of method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileCsvResults\\:\\:extractKeysAndValues\\(\\) expects ipl\\\\Orm\\\\Model, mixed given\\.$#"
2815+
count: 1
2816+
path: library/Icingadb/Data/VolatileCsvResults.php
2817+
2818+
-
2819+
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileJsonResults\\:\\:createObject\\(\\) return type has no value type specified in iterable type array\\.$#"
2820+
count: 1
2821+
path: library/Icingadb/Data/VolatileJsonResults.php
2822+
2823+
-
2824+
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileJsonResults\\:\\:formatValue\\(\\) has no return type specified\\.$#"
2825+
count: 1
2826+
path: library/Icingadb/Data/VolatileJsonResults.php
2827+
2828+
-
2829+
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileJsonResults\\:\\:formatValue\\(\\) has parameter \\$value with no type specified\\.$#"
2830+
count: 1
2831+
path: library/Icingadb/Data/VolatileJsonResults.php
2832+
2833+
-
2834+
message: "#^Parameter \\#1 \\$key of method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileJsonResults\\:\\:formatValue\\(\\) expects string, mixed given\\.$#"
2835+
count: 1
2836+
path: library/Icingadb/Data/VolatileJsonResults.php
2837+
2838+
-
2839+
message: "#^Parameter \\#1 \\$model of method Icinga\\\\Module\\\\Icingadb\\\\Data\\\\VolatileJsonResults\\:\\:createObject\\(\\) expects ipl\\\\Orm\\\\Model, mixed given\\.$#"
2840+
count: 1
2841+
path: library/Icingadb/Data/VolatileJsonResults.php
2842+
27932843
-
27942844
message: "#^Method Icinga\\\\Module\\\\Icingadb\\\\Hook\\\\ActionsHook\\\\ObjectActionsHook\\:\\:init\\(\\) has no return type specified\\.$#"
27952845
count: 1
@@ -5405,11 +5455,6 @@ parameters:
54055455
count: 1
54065456
path: library/Icingadb/Web/Controller.php
54075457

5408-
-
5409-
message: "#^Parameter \\#1 \\$limit of method ipl\\\\Orm\\\\Query\\:\\:limit\\(\\) expects int\\|null, mixed given\\.$#"
5410-
count: 1
5411-
path: library/Icingadb/Web/Controller.php
5412-
54135458
-
54145459
message: "#^Parameter \\#1 \\$queryString of method Icinga\\\\Module\\\\Icingadb\\\\Web\\\\Controller\\:\\:parseRestriction\\(\\) expects string, array\\<string\\> given\\.$#"
54155460
count: 3

0 commit comments

Comments
 (0)