Skip to content

Commit b07f5ea

Browse files
committed
Adapt phpstan baseline to 3.x-dev
1 parent 9ef62b3 commit b07f5ea

File tree

1 file changed

+15
-54
lines changed

1 file changed

+15
-54
lines changed

phpstan-baseline.neon

Lines changed: 15 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,76 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: '#^Call to function is_array\(\) with \*NEVER\* will always evaluate to true\.$#'
5-
identifier: function.alreadyNarrowedType
4+
message: "#^Method Joomla\\\\Utilities\\\\ArrayHelper\\:\\:arrayFromObject\\(\\) should return array but returns mixed\\.$#"
65
count: 1
76
path: src/ArrayHelper.php
87

98
-
10-
message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#'
11-
identifier: function.alreadyNarrowedType
12-
count: 3
13-
path: src/ArrayHelper.php
14-
15-
-
16-
message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#'
17-
identifier: function.alreadyNarrowedType
18-
count: 1
19-
path: src/ArrayHelper.php
20-
21-
-
22-
message: '#^Instanceof between ArrayAccess and ArrayAccess will always evaluate to true\.$#'
23-
identifier: instanceof.alwaysTrue
24-
count: 1
25-
path: src/ArrayHelper.php
26-
27-
-
28-
message: '#^Method Joomla\\Utilities\\ArrayHelper\:\:arrayFromObject\(\) should return array but returns mixed\.$#'
29-
identifier: return.type
30-
count: 1
31-
path: src/ArrayHelper.php
32-
33-
-
34-
message: '#^Result of && is always false\.$#'
35-
identifier: booleanAnd.alwaysFalse
9+
message: "#^Result of && is always false\\.$#"
3610
count: 1
3711
path: src/ArrayHelper.php
3812

3913
-
40-
message: '#^Result of \|\| is always true\.$#'
41-
identifier: booleanOr.alwaysTrue
14+
message: "#^Result of \\|\\| is always true\\.$#"
4215
count: 1
4316
path: src/ArrayHelper.php
4417

4518
-
46-
message: '#^Strict comparison using \=\=\= between string and null will always evaluate to false\.$#'
47-
identifier: identical.alwaysFalse
19+
message: "#^Strict comparison using \\=\\=\\= between string and null will always evaluate to false\\.$#"
4820
count: 1
4921
path: src/ArrayHelper.php
5022

5123
-
52-
message: '#^Unreachable statement \- code above always terminates\.$#'
53-
identifier: deadCode.unreachable
24+
message: "#^Unreachable statement \\- code above always terminates\\.$#"
5425
count: 2
5526
path: src/ArrayHelper.php
5627

5728
-
58-
message: '#^Variable \$caseSensitive might not be defined\.$#'
59-
identifier: variable.undefined
29+
message: "#^Variable \\$caseSensitive might not be defined\\.$#"
6030
count: 1
6131
path: src/ArrayHelper.php
6232

6333
-
64-
message: '#^Variable \$colName in isset\(\) always exists and is not nullable\.$#'
65-
identifier: isset.variable
34+
message: "#^Variable \\$colName in isset\\(\\) always exists and is not nullable\\.$#"
6635
count: 2
6736
path: src/ArrayHelper.php
6837

6938
-
70-
message: '#^Variable \$direction might not be defined\.$#'
71-
identifier: variable.undefined
39+
message: "#^Variable \\$direction might not be defined\\.$#"
7240
count: 2
7341
path: src/ArrayHelper.php
7442

7543
-
76-
message: '#^Variable \$locale might not be defined\.$#'
77-
identifier: variable.undefined
44+
message: "#^Variable \\$locale might not be defined\\.$#"
7845
count: 2
7946
path: src/ArrayHelper.php
8047

8148
-
82-
message: '#^Parameter \#3 \$length of function substr expects int\|null, float given\.$#'
83-
identifier: argument.type
49+
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, float given\\.$#"
8450
count: 2
8551
path: src/IpHelper.php
8652

8753
-
88-
message: '#^Parameter \#3 \$length of function substr expects int\|null, float\|string given\.$#'
89-
identifier: argument.type
54+
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, float\\|string given\\.$#"
9055
count: 2
9156
path: src/IpHelper.php
9257

9358
-
94-
message: '#^Parameter \#3 \$length of function substr expects int\|null, string given\.$#'
95-
identifier: argument.type
59+
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, string given\\.$#"
9660
count: 2
9761
path: src/IpHelper.php
9862

9963
-
100-
message: '#^Ternary operator condition is always false\.$#'
101-
identifier: ternary.alwaysFalse
64+
message: "#^Ternary operator condition is always false\\.$#"
10265
count: 1
10366
path: src/IpHelper.php
10467

10568
-
106-
message: '#^Variable \$_SERVER in isset\(\) always exists and is not nullable\.$#'
107-
identifier: isset.variable
69+
message: "#^Variable \\$_SERVER in isset\\(\\) always exists and is not nullable\\.$#"
10870
count: 1
10971
path: src/IpHelper.php
11072

11173
-
112-
message: '#^Variable \$netmask might not be defined\.$#'
113-
identifier: variable.undefined
74+
message: "#^Variable \\$netmask might not be defined\\.$#"
11475
count: 1
11576
path: src/IpHelper.php

0 commit comments

Comments
 (0)