|
1 | 1 | parameters: |
2 | 2 | ignoreErrors: |
3 | 3 | - |
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 |
5 | 6 | count: 1 |
6 | 7 | path: src/ArrayHelper.php |
7 | 8 |
|
8 | 9 | - |
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 |
10 | 36 | count: 1 |
11 | 37 | path: src/ArrayHelper.php |
12 | 38 |
|
13 | 39 | - |
14 | | - message: "#^Result of \\|\\| is always true\\.$#" |
| 40 | + message: '#^Result of \|\| is always true\.$#' |
| 41 | + identifier: booleanOr.alwaysTrue |
15 | 42 | count: 1 |
16 | 43 | path: src/ArrayHelper.php |
17 | 44 |
|
18 | 45 | - |
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 |
20 | 48 | count: 1 |
21 | 49 | path: src/ArrayHelper.php |
22 | 50 |
|
23 | 51 | - |
24 | | - message: "#^Unreachable statement \\- code above always terminates\\.$#" |
| 52 | + message: '#^Unreachable statement \- code above always terminates\.$#' |
| 53 | + identifier: deadCode.unreachable |
25 | 54 | count: 2 |
26 | 55 | path: src/ArrayHelper.php |
27 | 56 |
|
28 | 57 | - |
29 | | - message: "#^Variable \\$caseSensitive might not be defined\\.$#" |
| 58 | + message: '#^Variable \$caseSensitive might not be defined\.$#' |
| 59 | + identifier: variable.undefined |
30 | 60 | count: 1 |
31 | 61 | path: src/ArrayHelper.php |
32 | 62 |
|
33 | 63 | - |
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 |
35 | 66 | count: 2 |
36 | 67 | path: src/ArrayHelper.php |
37 | 68 |
|
38 | 69 | - |
39 | | - message: "#^Variable \\$direction might not be defined\\.$#" |
| 70 | + message: '#^Variable \$direction might not be defined\.$#' |
| 71 | + identifier: variable.undefined |
40 | 72 | count: 2 |
41 | 73 | path: src/ArrayHelper.php |
42 | 74 |
|
43 | 75 | - |
44 | | - message: "#^Variable \\$locale might not be defined\\.$#" |
| 76 | + message: '#^Variable \$locale might not be defined\.$#' |
| 77 | + identifier: variable.undefined |
45 | 78 | count: 2 |
46 | 79 | path: src/ArrayHelper.php |
47 | 80 |
|
48 | 81 | - |
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 |
50 | 84 | count: 2 |
51 | 85 | path: src/IpHelper.php |
52 | 86 |
|
53 | 87 | - |
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 |
55 | 90 | count: 2 |
56 | 91 | path: src/IpHelper.php |
57 | 92 |
|
58 | 93 | - |
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 |
60 | 96 | count: 2 |
61 | 97 | path: src/IpHelper.php |
62 | 98 |
|
63 | 99 | - |
64 | | - message: "#^Ternary operator condition is always false\\.$#" |
| 100 | + message: '#^Ternary operator condition is always false\.$#' |
| 101 | + identifier: ternary.alwaysFalse |
65 | 102 | count: 1 |
66 | 103 | path: src/IpHelper.php |
67 | 104 |
|
68 | 105 | - |
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 |
70 | 108 | count: 1 |
71 | 109 | path: src/IpHelper.php |
72 | 110 |
|
73 | 111 | - |
74 | | - message: "#^Variable \\$netmask might not be defined\\.$#" |
| 112 | + message: '#^Variable \$netmask might not be defined\.$#' |
| 113 | + identifier: variable.undefined |
75 | 114 | count: 1 |
76 | 115 | path: src/IpHelper.php |
0 commit comments