Skip to content

Commit 591883a

Browse files
committed
Revert adapt phpstan baseline to 3.x-dev
1 parent 5cb8b32 commit 591883a

File tree

1 file changed

+54
-15
lines changed

1 file changed

+54
-15
lines changed

phpstan-baseline.neon

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

89
-
9-
message: "#^Result of && is always false\\.$#"
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
1036
count: 1
1137
path: src/ArrayHelper.php
1238

1339
-
14-
message: "#^Result of \\|\\| is always true\\.$#"
40+
message: '#^Result of \|\| is always true\.$#'
41+
identifier: booleanOr.alwaysTrue
1542
count: 1
1643
path: src/ArrayHelper.php
1744

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

2351
-
24-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
52+
message: '#^Unreachable statement \- code above always terminates\.$#'
53+
identifier: deadCode.unreachable
2554
count: 2
2655
path: src/ArrayHelper.php
2756

2857
-
29-
message: "#^Variable \\$caseSensitive might not be defined\\.$#"
58+
message: '#^Variable \$caseSensitive might not be defined\.$#'
59+
identifier: variable.undefined
3060
count: 1
3161
path: src/ArrayHelper.php
3262

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

3869
-
39-
message: "#^Variable \\$direction might not be defined\\.$#"
70+
message: '#^Variable \$direction might not be defined\.$#'
71+
identifier: variable.undefined
4072
count: 2
4173
path: src/ArrayHelper.php
4274

4375
-
44-
message: "#^Variable \\$locale might not be defined\\.$#"
76+
message: '#^Variable \$locale might not be defined\.$#'
77+
identifier: variable.undefined
4578
count: 2
4679
path: src/ArrayHelper.php
4780

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

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

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

6399
-
64-
message: "#^Ternary operator condition is always false\\.$#"
100+
message: '#^Ternary operator condition is always false\.$#'
101+
identifier: ternary.alwaysFalse
65102
count: 1
66103
path: src/IpHelper.php
67104

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

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

0 commit comments

Comments
 (0)