|
| 1 | +parameters: |
| 2 | + ignoreErrors: |
| 3 | + - |
| 4 | + message: '#^Parameter \#1 \$key \(\(int\|string\)\) of method Nette\\Utils\\ArrayHash\:\:offsetSet\(\) should be contravariant with parameter \$offset \(int\|string\|null\) of method ArrayAccess\<\(int\|string\),T\>\:\:offsetSet\(\)$#' |
| 5 | + identifier: method.childParameterType |
| 6 | + count: 1 |
| 7 | + path: src/Utils/ArrayHash.php |
| 8 | + |
| 9 | + - |
| 10 | + message: '#^Call to static method Nette\\Utils\\Arrays\:\:isList\(\) with list\<T\> will always evaluate to true\.$#' |
| 11 | + identifier: staticMethod.alreadyNarrowedType |
| 12 | + count: 1 |
| 13 | + path: src/Utils/ArrayList.php |
| 14 | + |
| 15 | + - |
| 16 | + message: '#^Property Nette\\Utils\\ArrayList\<T\>\:\:\$list \(list\<T\>\) does not accept non\-empty\-array\<int\<0, max\>, T\>\.$#' |
| 17 | + identifier: assign.propertyType |
| 18 | + count: 1 |
| 19 | + path: src/Utils/ArrayList.php |
| 20 | + |
| 21 | + - |
| 22 | + message: '#^Cannot access offset string on array\<mixed\>\|object\.$#' |
| 23 | + identifier: offsetAccess.nonOffsetAccessible |
| 24 | + count: 3 |
| 25 | + path: src/Utils/Arrays.php |
| 26 | + |
| 27 | + - |
| 28 | + message: '#^Method Nette\\Utils\\Arrays\:\:invoke\(\) has parameter \$callbacks with no signature specified for callable\.$#' |
| 29 | + identifier: missingType.callable |
| 30 | + count: 1 |
| 31 | + path: src/Utils/Arrays.php |
| 32 | + |
| 33 | + - |
| 34 | + message: '#^Parameter \#1 \$objectOrMethod of class Nette\\Utils\\ReflectionMethod constructor expects class\-string\|object, string given\.$#' |
| 35 | + identifier: argument.type |
| 36 | + count: 1 |
| 37 | + path: src/Utils/Callback.php |
| 38 | + |
| 39 | + - |
| 40 | + message: '#^Left side of && is always true\.$#' |
| 41 | + identifier: booleanAnd.leftAlwaysTrue |
| 42 | + count: 2 |
| 43 | + path: src/Utils/DateTime.php |
| 44 | + |
| 45 | + - |
| 46 | + message: '#^Parameter \#1 \$pathNames of method Nette\\Utils\\Finder\:\:convertToFiles\(\) expects iterable\<string\>, FilesystemIterator given\.$#' |
| 47 | + identifier: argument.type |
| 48 | + count: 1 |
| 49 | + path: src/Utils/Finder.php |
| 50 | + |
| 51 | + - |
| 52 | + message: '#^Parameter \#2 \$operator of static method Nette\\Utils\\Helpers\:\:compare\(\) expects ''\!\=''\|''\!\=\=''\|''\<''\|''\<\=''\|''\<\>''\|''\=''\|''\=\=''\|''\=\=\=''\|''\>''\|''\>\='', non\-falsy\-string given\.$#' |
| 53 | + identifier: argument.type |
| 54 | + count: 2 |
| 55 | + path: src/Utils/Finder.php |
| 56 | + |
| 57 | + - |
| 58 | + message: '#^Trying to invoke non\-falsy\-string but it might not be a callable\.$#' |
| 59 | + identifier: callable.nonCallable |
| 60 | + count: 1 |
| 61 | + path: src/Utils/Finder.php |
| 62 | + |
| 63 | + - |
| 64 | + message: '#^Variable \$res on left side of \?\?\= always exists and is not nullable\.$#' |
| 65 | + identifier: nullCoalesce.variable |
| 66 | + count: 1 |
| 67 | + path: src/Utils/Finder.php |
| 68 | + |
| 69 | + - |
| 70 | + message: '#^Match arm comparison between ''\!\=\='' and ''\!\=\='' is always true\.$#' |
| 71 | + identifier: match.alwaysTrue |
| 72 | + count: 1 |
| 73 | + path: src/Utils/Helpers.php |
| 74 | + |
| 75 | + - |
| 76 | + message: '#^Comparison operation "\<" between int\<1, max\> and 1 is always false\.$#' |
| 77 | + identifier: smaller.alwaysFalse |
| 78 | + count: 2 |
| 79 | + path: src/Utils/Image.php |
| 80 | + |
| 81 | + - |
| 82 | + message: '#^Match arm comparison between 6 and 6 is always true\.$#' |
| 83 | + identifier: match.alwaysTrue |
| 84 | + count: 2 |
| 85 | + path: src/Utils/Image.php |
| 86 | + |
| 87 | + - |
| 88 | + message: '#^Offset 1\|2\|3\|6\|18\|19 on array\{2\: ''jpeg'', 3\: ''png'', 1\: ''gif'', 18\: ''webp'', 19\: ''avif'', 6\: ''bmp''\} in isset\(\) always exists and is not nullable\.$#' |
| 89 | + identifier: isset.offset |
| 90 | + count: 1 |
| 91 | + path: src/Utils/Image.php |
| 92 | + |
| 93 | + - |
| 94 | + message: '#^Result of \|\| is always false\.$#' |
| 95 | + identifier: booleanOr.alwaysFalse |
| 96 | + count: 1 |
| 97 | + path: src/Utils/Image.php |
| 98 | + |
| 99 | + - |
| 100 | + message: '#^Parameter \#1 \$class of class ReflectionClassConstant constructor expects class\-string\|object, string given\.$#' |
| 101 | + identifier: argument.type |
| 102 | + count: 1 |
| 103 | + path: src/Utils/Reflection.php |
| 104 | + |
| 105 | + - |
| 106 | + message: '#^Right side of && is always true\.$#' |
| 107 | + identifier: booleanAnd.rightAlwaysTrue |
| 108 | + count: 2 |
| 109 | + path: src/Utils/Reflection.php |
| 110 | + |
| 111 | + - |
| 112 | + message: '#^Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class\-string\<T of object\>\|T of object, object\|string given\.$#' |
| 113 | + identifier: argument.type |
| 114 | + count: 1 |
| 115 | + path: src/Utils/ReflectionMethod.php |
| 116 | + |
| 117 | + - |
| 118 | + message: '#^Parameter \#2 \$method of method ReflectionMethod\:\:__construct\(\) expects string, string\|null given\.$#' |
| 119 | + identifier: argument.type |
| 120 | + count: 1 |
| 121 | + path: src/Utils/ReflectionMethod.php |
| 122 | + |
| 123 | + - |
| 124 | + message: '#^Method Nette\\Utils\\Strings\:\:match\(\) should return array\<string\>\|null but returns array\<array\<int, int\|string\>\>\.$#' |
| 125 | + identifier: return.type |
| 126 | + count: 1 |
| 127 | + path: src/Utils/Strings.php |
| 128 | + |
| 129 | + - |
| 130 | + message: '#^Strict comparison using \!\=\= between string and false will always evaluate to true\.$#' |
| 131 | + identifier: notIdentical.alwaysTrue |
| 132 | + count: 1 |
| 133 | + path: src/Utils/Strings.php |
| 134 | + |
| 135 | + - |
| 136 | + message: '#^Parameter \#1 \$givenTypes of method Nette\\Utils\\Type\:\:allowsAny\(\) expects array\<string\>, list\<Nette\\Utils\\Type\|string\> given\.$#' |
| 137 | + identifier: argument.type |
| 138 | + count: 2 |
| 139 | + path: src/Utils/Type.php |
| 140 | + |
| 141 | + - |
| 142 | + message: '#^Parameter \#1 \$ourTypes of method Nette\\Utils\\Type\:\:allowsAll\(\) expects array\<string\>, list\<Nette\\Utils\\Type\|string\> given\.$#' |
| 143 | + identifier: argument.type |
| 144 | + count: 2 |
| 145 | + path: src/Utils/Type.php |
| 146 | + |
| 147 | + - |
| 148 | + message: '#^Parameter \#2 \$of of static method Nette\\Utils\\Type\:\:resolve\(\) expects ReflectionFunction\|ReflectionMethod\|ReflectionParameter\|ReflectionProperty, ReflectionFunctionAbstract\|ReflectionParameter\|ReflectionProperty given\.$#' |
| 149 | + identifier: argument.type |
| 150 | + count: 1 |
| 151 | + path: src/Utils/Type.php |
0 commit comments