baseline.php 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. <?php declare(strict_types = 1);
  2. $ignoreErrors = [];
  3. $ignoreErrors[] = [
  4. 'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
  5. 'count' => 1,
  6. 'path' => __DIR__ . '/../../src/Console/Command/SelfUpdateCommand.php',
  7. ];
  8. $ignoreErrors[] = [
  9. 'message' => '#^Only booleans are allowed in an if condition, mixed given\\.$#',
  10. 'count' => 1,
  11. 'path' => __DIR__ . '/../../src/Console/ConfigurationResolver.php',
  12. ];
  13. $ignoreErrors[] = [
  14. 'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
  15. 'count' => 1,
  16. 'path' => __DIR__ . '/../../src/Console/ConfigurationResolver.php',
  17. ];
  18. $ignoreErrors[] = [
  19. 'message' => '#^Foreach overwrites \\$token with its value variable\\.$#',
  20. 'count' => 1,
  21. 'path' => __DIR__ . '/../../src/Doctrine/Annotation/Tokens.php',
  22. ];
  23. $ignoreErrors[] = [
  24. 'message' => '#^Parameter \\#1 \\$array \\(array\\<PhpCsFixer\\\\Doctrine\\\\Annotation\\\\Token\\>\\) of method PhpCsFixer\\\\Doctrine\\\\Annotation\\\\Tokens\\:\\:fromArray\\(\\) should be contravariant with parameter \\$array \\(array\\<int, mixed\\>\\) of method SplFixedArray\\<PhpCsFixer\\\\Doctrine\\\\Annotation\\\\Token\\>\\:\\:fromArray\\(\\)$#',
  25. 'count' => 1,
  26. 'path' => __DIR__ . '/../../src/Doctrine/Annotation/Tokens.php',
  27. ];
  28. $ignoreErrors[] = [
  29. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Alias\\\\NoAliasFunctionsFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  30. 'count' => 1,
  31. 'path' => __DIR__ . '/../../src/Fixer/Alias/NoAliasFunctionsFixer.php',
  32. ];
  33. $ignoreErrors[] = [
  34. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Alias\\\\NoMixedEchoPrintFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  35. 'count' => 1,
  36. 'path' => __DIR__ . '/../../src/Fixer/Alias/NoMixedEchoPrintFixer.php',
  37. ];
  38. $ignoreErrors[] = [
  39. 'message' => '#^Variable method call on \\$this\\(PhpCsFixer\\\\Fixer\\\\Alias\\\\NoMixedEchoPrintFixer\\)\\.$#',
  40. 'count' => 1,
  41. 'path' => __DIR__ . '/../../src/Fixer/Alias/NoMixedEchoPrintFixer.php',
  42. ];
  43. $ignoreErrors[] = [
  44. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Alias\\\\RandomApiMigrationFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  45. 'count' => 1,
  46. 'path' => __DIR__ . '/../../src/Fixer/Alias/RandomApiMigrationFixer.php',
  47. ];
  48. $ignoreErrors[] = [
  49. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\ArrayNotation\\\\ArraySyntaxFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  50. 'count' => 1,
  51. 'path' => __DIR__ . '/../../src/Fixer/ArrayNotation/ArraySyntaxFixer.php',
  52. ];
  53. $ignoreErrors[] = [
  54. 'message' => '#^Variable method call on \\$this\\(PhpCsFixer\\\\Fixer\\\\ArrayNotation\\\\ArraySyntaxFixer\\)\\.$#',
  55. 'count' => 1,
  56. 'path' => __DIR__ . '/../../src/Fixer/ArrayNotation/ArraySyntaxFixer.php',
  57. ];
  58. $ignoreErrors[] = [
  59. 'message' => '#^Only booleans are allowed in &&, mixed given on the left side\\.$#',
  60. 'count' => 1,
  61. 'path' => __DIR__ . '/../../src/Fixer/ArrayNotation/WhitespaceAfterCommaInArrayFixer.php',
  62. ];
  63. $ignoreErrors[] = [
  64. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\|null\\) of method PhpCsFixer\\\\Fixer\\\\Basic\\\\BracesFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  65. 'count' => 1,
  66. 'path' => __DIR__ . '/../../src/Fixer/Basic/BracesFixer.php',
  67. ];
  68. $ignoreErrors[] = [
  69. 'message' => '#^Only booleans are allowed in &&, mixed given on the left side\\.$#',
  70. 'count' => 1,
  71. 'path' => __DIR__ . '/../../src/Fixer/Basic/CurlyBracesPositionFixer.php',
  72. ];
  73. $ignoreErrors[] = [
  74. 'message' => '#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#',
  75. 'count' => 1,
  76. 'path' => __DIR__ . '/../../src/Fixer/Basic/CurlyBracesPositionFixer.php',
  77. ];
  78. $ignoreErrors[] = [
  79. 'message' => '#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#',
  80. 'count' => 1,
  81. 'path' => __DIR__ . '/../../src/Fixer/Basic/CurlyBracesPositionFixer.php',
  82. ];
  83. $ignoreErrors[] = [
  84. 'message' => '#^Variable \\$prevIndex might not be defined\\.$#',
  85. 'count' => 2,
  86. 'path' => __DIR__ . '/../../src/Fixer/Basic/CurlyBracesPositionFixer.php',
  87. ];
  88. $ignoreErrors[] = [
  89. 'message' => '#^Only booleans are allowed in &&, mixed given on the left side\\.$#',
  90. 'count' => 1,
  91. 'path' => __DIR__ . '/../../src/Fixer/Basic/NonPrintableCharacterFixer.php',
  92. ];
  93. $ignoreErrors[] = [
  94. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Basic\\\\PsrAutoloadingFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  95. 'count' => 1,
  96. 'path' => __DIR__ . '/../../src/Fixer/Basic/PsrAutoloadingFixer.php',
  97. ];
  98. $ignoreErrors[] = [
  99. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Casing\\\\ConstantCaseFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  100. 'count' => 1,
  101. 'path' => __DIR__ . '/../../src/Fixer/Casing/ConstantCaseFixer.php',
  102. ];
  103. $ignoreErrors[] = [
  104. 'message' => '#^Variable \\$i might not be defined\\.$#',
  105. 'count' => 1,
  106. 'path' => __DIR__ . '/../../src/Fixer/CastNotation/NoShortBoolCastFixer.php',
  107. ];
  108. $ignoreErrors[] = [
  109. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassAttributesSeparationFixer\\:\\:determineRequiredLineCount\\(\\) has parameter \\$class with no value type specified in iterable type array\\.$#',
  110. 'count' => 1,
  111. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  112. ];
  113. $ignoreErrors[] = [
  114. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassAttributesSeparationFixer\\:\\:getFirstTokenIndexOfClassElement\\(\\) has parameter \\$class with no value type specified in iterable type array\\.$#',
  115. 'count' => 1,
  116. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  117. ];
  118. $ignoreErrors[] = [
  119. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassAttributesSeparationFixer\\:\\:getFirstTokenIndexOfClassElement\\(\\) has parameter \\$element with no value type specified in iterable type array\\.$#',
  120. 'count' => 1,
  121. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  122. ];
  123. $ignoreErrors[] = [
  124. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassAttributesSeparationFixer\\:\\:getLastTokenIndexOfClassElement\\(\\) has parameter \\$class with no value type specified in iterable type array\\.$#',
  125. 'count' => 1,
  126. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  127. ];
  128. $ignoreErrors[] = [
  129. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassAttributesSeparationFixer\\:\\:getLastTokenIndexOfClassElement\\(\\) has parameter \\$element with no value type specified in iterable type array\\.$#',
  130. 'count' => 1,
  131. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  132. ];
  133. $ignoreErrors[] = [
  134. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassAttributesSeparationFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  135. 'count' => 1,
  136. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  137. ];
  138. $ignoreErrors[] = [
  139. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassDefinitionFixer\\:\\:fixClassyDefinitionExtends\\(\\) has parameter \\$classExtendsInfo with no value type specified in iterable type array\\.$#',
  140. 'count' => 1,
  141. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  142. ];
  143. $ignoreErrors[] = [
  144. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassDefinitionFixer\\:\\:fixClassyDefinitionExtends\\(\\) return type has no value type specified in iterable type array\\.$#',
  145. 'count' => 1,
  146. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  147. ];
  148. $ignoreErrors[] = [
  149. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassDefinitionFixer\\:\\:fixClassyDefinitionImplements\\(\\) has parameter \\$classImplementsInfo with no value type specified in iterable type array\\.$#',
  150. 'count' => 1,
  151. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  152. ];
  153. $ignoreErrors[] = [
  154. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassDefinitionFixer\\:\\:fixClassyDefinitionImplements\\(\\) return type has no value type specified in iterable type array\\.$#',
  155. 'count' => 1,
  156. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  157. ];
  158. $ignoreErrors[] = [
  159. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassDefinitionFixer\\:\\:fixClassyDefinitionOpenSpacing\\(\\) has parameter \\$classDefInfo with no value type specified in iterable type array\\.$#',
  160. 'count' => 1,
  161. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  162. ];
  163. $ignoreErrors[] = [
  164. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassDefinitionFixer\\:\\:getClassyInheritanceInfo\\(\\) return type has no value type specified in iterable type array\\.$#',
  165. 'count' => 1,
  166. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  167. ];
  168. $ignoreErrors[] = [
  169. 'message' => '#^Only booleans are allowed in a negated boolean, mixed given\\.$#',
  170. 'count' => 1,
  171. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  172. ];
  173. $ignoreErrors[] = [
  174. 'message' => '#^Only booleans are allowed in &&, int\\|null given on the right side\\.$#',
  175. 'count' => 1,
  176. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/FinalInternalClassFixer.php',
  177. ];
  178. $ignoreErrors[] = [
  179. 'message' => '#^Only booleans are allowed in &&, mixed given on the right side\\.$#',
  180. 'count' => 1,
  181. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/FinalInternalClassFixer.php',
  182. ];
  183. $ignoreErrors[] = [
  184. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\FinalInternalClassFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  185. 'count' => 1,
  186. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/FinalInternalClassFixer.php',
  187. ];
  188. $ignoreErrors[] = [
  189. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\NoPhp4ConstructorFixer\\:\\:getWrapperMethodSequence\\(\\) return type has no value type specified in iterable type array\\.$#',
  190. 'count' => 1,
  191. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/NoPhp4ConstructorFixer.php',
  192. ];
  193. $ignoreErrors[] = [
  194. 'message' => '#^Only booleans are allowed in a negated boolean, mixed given\\.$#',
  195. 'count' => 1,
  196. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/NoUnneededFinalMethodFixer.php',
  197. ];
  198. $ignoreErrors[] = [
  199. 'message' => '#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#',
  200. 'count' => 1,
  201. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/NoUnneededFinalMethodFixer.php',
  202. ];
  203. $ignoreErrors[] = [
  204. 'message' => '#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#',
  205. 'count' => 2,
  206. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/NoUnneededFinalMethodFixer.php',
  207. ];
  208. $ignoreErrors[] = [
  209. 'message' => '#^Foreach overwrites \\$pos with its value variable\\.$#',
  210. 'count' => 1,
  211. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedClassElementsFixer.php',
  212. ];
  213. $ignoreErrors[] = [
  214. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\OrderedClassElementsFixer\\:\\:sortElements\\(\\) has parameter \\$elements with no value type specified in iterable type array\\.$#',
  215. 'count' => 1,
  216. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedClassElementsFixer.php',
  217. ];
  218. $ignoreErrors[] = [
  219. 'message' => '#^Only booleans are allowed in a negated boolean, array\\<int, string\\>\\|null given\\.$#',
  220. 'count' => 1,
  221. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedClassElementsFixer.php',
  222. ];
  223. $ignoreErrors[] = [
  224. 'message' => '#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#',
  225. 'count' => 1,
  226. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedClassElementsFixer.php',
  227. ];
  228. $ignoreErrors[] = [
  229. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\OrderedClassElementsFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  230. 'count' => 1,
  231. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedClassElementsFixer.php',
  232. ];
  233. $ignoreErrors[] = [
  234. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Comment\\\\CommentToPhpdocFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  235. 'count' => 1,
  236. 'path' => __DIR__ . '/../../src/Fixer/Comment/CommentToPhpdocFixer.php',
  237. ];
  238. $ignoreErrors[] = [
  239. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Comment\\\\NoEmptyCommentFixer\\:\\:getCommentBlock\\(\\) return type has no value type specified in iterable type array\\.$#',
  240. 'count' => 1,
  241. 'path' => __DIR__ . '/../../src/Fixer/Comment/NoEmptyCommentFixer.php',
  242. ];
  243. $ignoreErrors[] = [
  244. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Comment\\\\SingleLineCommentStyleFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  245. 'count' => 1,
  246. 'path' => __DIR__ . '/../../src/Fixer/Comment/SingleLineCommentStyleFixer.php',
  247. ];
  248. $ignoreErrors[] = [
  249. 'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
  250. 'count' => 1,
  251. 'path' => __DIR__ . '/../../src/Fixer/Comment/SingleLineCommentStyleFixer.php',
  252. ];
  253. $ignoreErrors[] = [
  254. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\) has parameter \\$configuration with no value type specified in iterable type array\\.$#',
  255. 'count' => 1,
  256. 'path' => __DIR__ . '/../../src/Fixer/ConfigurableFixerInterface.php',
  257. ];
  258. $ignoreErrors[] = [
  259. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\ConstantNotation\\\\NativeConstantInvocationFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  260. 'count' => 1,
  261. 'path' => __DIR__ . '/../../src/Fixer/ConstantNotation/NativeConstantInvocationFixer.php',
  262. ];
  263. $ignoreErrors[] = [
  264. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ControlStructure\\\\YodaStyleFixer\\:\\:getCompareFixableInfo\\(\\) return type has no value type specified in iterable type array\\.$#',
  265. 'count' => 1,
  266. 'path' => __DIR__ . '/../../src/Fixer/ControlStructure/YodaStyleFixer.php',
  267. ];
  268. $ignoreErrors[] = [
  269. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\ControlStructure\\\\YodaStyleFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  270. 'count' => 1,
  271. 'path' => __DIR__ . '/../../src/Fixer/ControlStructure/YodaStyleFixer.php',
  272. ];
  273. $ignoreErrors[] = [
  274. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\FunctionNotation\\\\LambdaNotUsedImportFixer\\:\\:countImportsUsedAsArgument\\(\\) has parameter \\$arguments with no value type specified in iterable type array\\.$#',
  275. 'count' => 1,
  276. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/LambdaNotUsedImportFixer.php',
  277. ];
  278. $ignoreErrors[] = [
  279. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\FunctionNotation\\\\LambdaNotUsedImportFixer\\:\\:countImportsUsedAsArgument\\(\\) has parameter \\$imports with no value type specified in iterable type array\\.$#',
  280. 'count' => 1,
  281. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/LambdaNotUsedImportFixer.php',
  282. ];
  283. $ignoreErrors[] = [
  284. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\FunctionNotation\\\\LambdaNotUsedImportFixer\\:\\:countImportsUsedAsArgument\\(\\) return type has no value type specified in iterable type array\\.$#',
  285. 'count' => 1,
  286. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/LambdaNotUsedImportFixer.php',
  287. ];
  288. $ignoreErrors[] = [
  289. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\FunctionNotation\\\\LambdaNotUsedImportFixer\\:\\:filterArguments\\(\\) has parameter \\$arguments with no value type specified in iterable type array\\.$#',
  290. 'count' => 1,
  291. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/LambdaNotUsedImportFixer.php',
  292. ];
  293. $ignoreErrors[] = [
  294. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\FunctionNotation\\\\LambdaNotUsedImportFixer\\:\\:filterArguments\\(\\) return type has no value type specified in iterable type array\\.$#',
  295. 'count' => 1,
  296. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/LambdaNotUsedImportFixer.php',
  297. ];
  298. $ignoreErrors[] = [
  299. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\FunctionNotation\\\\LambdaNotUsedImportFixer\\:\\:findNotUsedLambdaImports\\(\\) has parameter \\$imports with no value type specified in iterable type array\\.$#',
  300. 'count' => 1,
  301. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/LambdaNotUsedImportFixer.php',
  302. ];
  303. $ignoreErrors[] = [
  304. 'message' => '#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#',
  305. 'count' => 1,
  306. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/MethodArgumentSpaceFixer.php',
  307. ];
  308. $ignoreErrors[] = [
  309. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\FunctionNotation\\\\MethodArgumentSpaceFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  310. 'count' => 1,
  311. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/MethodArgumentSpaceFixer.php',
  312. ];
  313. $ignoreErrors[] = [
  314. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\FunctionNotation\\\\NativeFunctionInvocationFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  315. 'count' => 1,
  316. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php',
  317. ];
  318. $ignoreErrors[] = [
  319. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\FunctionNotation\\\\PhpdocToPropertyTypeFixer\\:\\:resolveApplicableType\\(\\) return type has no value type specified in iterable type array\\.$#',
  320. 'count' => 1,
  321. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/PhpdocToPropertyTypeFixer.php',
  322. ];
  323. $ignoreErrors[] = [
  324. 'message' => '#^For loop initial assignment overwrites variable \\$index\\.$#',
  325. 'count' => 1,
  326. 'path' => __DIR__ . '/../../src/Fixer/Import/GlobalNamespaceImportFixer.php',
  327. ];
  328. $ignoreErrors[] = [
  329. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Import\\\\GlobalNamespaceImportFixer\\:\\:filterUseDeclarations\\(\\) return type has no value type specified in iterable type array\\.$#',
  330. 'count' => 1,
  331. 'path' => __DIR__ . '/../../src/Fixer/Import/GlobalNamespaceImportFixer.php',
  332. ];
  333. $ignoreErrors[] = [
  334. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Import\\\\GlobalNamespaceImportFixer\\:\\:insertImports\\(\\) has parameter \\$imports with no value type specified in iterable type array\\.$#',
  335. 'count' => 1,
  336. 'path' => __DIR__ . '/../../src/Fixer/Import/GlobalNamespaceImportFixer.php',
  337. ];
  338. $ignoreErrors[] = [
  339. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Import\\\\GlobalNamespaceImportFixer\\:\\:prepareImports\\(\\) has parameter \\$global with no value type specified in iterable type array\\.$#',
  340. 'count' => 1,
  341. 'path' => __DIR__ . '/../../src/Fixer/Import/GlobalNamespaceImportFixer.php',
  342. ];
  343. $ignoreErrors[] = [
  344. 'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
  345. 'count' => 1,
  346. 'path' => __DIR__ . '/../../src/Fixer/Import/GroupImportFixer.php',
  347. ];
  348. $ignoreErrors[] = [
  349. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Import\\\\OrderedImportsFixer\\:\\:getNewOrder\\(\\) return type has no value type specified in iterable type array\\.$#',
  350. 'count' => 1,
  351. 'path' => __DIR__ . '/../../src/Fixer/Import/OrderedImportsFixer.php',
  352. ];
  353. $ignoreErrors[] = [
  354. 'message' => '#^Variable \\$k might not be defined\\.$#',
  355. 'count' => 1,
  356. 'path' => __DIR__ . '/../../src/Fixer/Import/OrderedImportsFixer.php',
  357. ];
  358. $ignoreErrors[] = [
  359. 'message' => '#^Variable \\$k2 might not be defined\\.$#',
  360. 'count' => 1,
  361. 'path' => __DIR__ . '/../../src/Fixer/Import/OrderedImportsFixer.php',
  362. ];
  363. $ignoreErrors[] = [
  364. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Import\\\\SingleImportPerStatementFixer\\:\\:getGroupDeclaration\\(\\) return type has no value type specified in iterable type array\\.$#',
  365. 'count' => 1,
  366. 'path' => __DIR__ . '/../../src/Fixer/Import/SingleImportPerStatementFixer.php',
  367. ];
  368. $ignoreErrors[] = [
  369. 'message' => '#^Only booleans are allowed in an if condition, mixed given\\.$#',
  370. 'count' => 1,
  371. 'path' => __DIR__ . '/../../src/Fixer/Import/SingleImportPerStatementFixer.php',
  372. ];
  373. $ignoreErrors[] = [
  374. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\DeclareEqualNormalizeFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  375. 'count' => 1,
  376. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/DeclareEqualNormalizeFixer.php',
  377. ];
  378. $ignoreErrors[] = [
  379. 'message' => '#^Variable method call on \\$this\\(PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\DeclareEqualNormalizeFixer\\)\\.$#',
  380. 'count' => 1,
  381. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/DeclareEqualNormalizeFixer.php',
  382. ];
  383. $ignoreErrors[] = [
  384. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\FunctionToConstantFixer\\:\\:fixGetClassCall\\(\\) return type has no value type specified in iterable type array\\.$#',
  385. 'count' => 1,
  386. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/FunctionToConstantFixer.php',
  387. ];
  388. $ignoreErrors[] = [
  389. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\FunctionToConstantFixer\\:\\:getReplaceCandidate\\(\\) return type has no value type specified in iterable type array\\.$#',
  390. 'count' => 1,
  391. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/FunctionToConstantFixer.php',
  392. ];
  393. $ignoreErrors[] = [
  394. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\FunctionToConstantFixer\\:\\:getReplacementTokenClones\\(\\) return type has no value type specified in iterable type array\\.$#',
  395. 'count' => 1,
  396. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/FunctionToConstantFixer.php',
  397. ];
  398. $ignoreErrors[] = [
  399. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\FunctionToConstantFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  400. 'count' => 1,
  401. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/FunctionToConstantFixer.php',
  402. ];
  403. $ignoreErrors[] = [
  404. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\NullableTypeDeclarationFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  405. 'count' => 1,
  406. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/NullableTypeDeclarationFixer.php',
  407. ];
  408. $ignoreErrors[] = [
  409. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\SingleSpaceAfterConstructFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  410. 'count' => 1,
  411. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/SingleSpaceAfterConstructFixer.php',
  412. ];
  413. $ignoreErrors[] = [
  414. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\SingleSpaceAroundConstructFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  415. 'count' => 1,
  416. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/SingleSpaceAroundConstructFixer.php',
  417. ];
  418. $ignoreErrors[] = [
  419. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, string\\>\\) of method PhpCsFixer\\\\Fixer\\\\ListNotation\\\\ListSyntaxFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  420. 'count' => 1,
  421. 'path' => __DIR__ . '/../../src/Fixer/ListNotation/ListSyntaxFixer.php',
  422. ];
  423. $ignoreErrors[] = [
  424. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, string\\>\\) of method PhpCsFixer\\\\Fixer\\\\ListNotation\\\\ListSyntaxFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\AbstractFixer\\:\\:configure\\(\\)$#',
  425. 'count' => 1,
  426. 'path' => __DIR__ . '/../../src/Fixer/ListNotation/ListSyntaxFixer.php',
  427. ];
  428. $ignoreErrors[] = [
  429. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Operator\\\\BinaryOperatorSpacesFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  430. 'count' => 1,
  431. 'path' => __DIR__ . '/../../src/Fixer/Operator/BinaryOperatorSpacesFixer.php',
  432. ];
  433. $ignoreErrors[] = [
  434. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Operator\\\\ConcatSpaceFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  435. 'count' => 1,
  436. 'path' => __DIR__ . '/../../src/Fixer/Operator/ConcatSpaceFixer.php',
  437. ];
  438. $ignoreErrors[] = [
  439. 'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
  440. 'count' => 1,
  441. 'path' => __DIR__ . '/../../src/Fixer/Operator/ConcatSpaceFixer.php',
  442. ];
  443. $ignoreErrors[] = [
  444. 'message' => '#^Variable method call on \\$this\\(PhpCsFixer\\\\Fixer\\\\Operator\\\\ConcatSpaceFixer\\)\\.$#',
  445. 'count' => 1,
  446. 'path' => __DIR__ . '/../../src/Fixer/Operator/ConcatSpaceFixer.php',
  447. ];
  448. $ignoreErrors[] = [
  449. 'message' => '#^Only booleans are allowed in an if condition, mixed given\\.$#',
  450. 'count' => 2,
  451. 'path' => __DIR__ . '/../../src/Fixer/Operator/NewWithBracesFixer.php',
  452. ];
  453. $ignoreErrors[] = [
  454. 'message' => '#^Only booleans are allowed in a negated boolean, mixed given\\.$#',
  455. 'count' => 1,
  456. 'path' => __DIR__ . '/../../src/Fixer/Operator/NoUselessConcatOperatorFixer.php',
  457. ];
  458. $ignoreErrors[] = [
  459. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Operator\\\\OperatorLinebreakFixer\\:\\:getNonBooleanOperators\\(\\) return type has no value type specified in iterable type array\\.$#',
  460. 'count' => 1,
  461. 'path' => __DIR__ . '/../../src/Fixer/Operator/OperatorLinebreakFixer.php',
  462. ];
  463. $ignoreErrors[] = [
  464. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Operator\\\\OperatorLinebreakFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  465. 'count' => 1,
  466. 'path' => __DIR__ . '/../../src/Fixer/Operator/OperatorLinebreakFixer.php',
  467. ];
  468. $ignoreErrors[] = [
  469. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Operator\\\\TernaryToElvisOperatorFixer\\:\\:getBeforeOperator\\(\\) has parameter \\$blockEdgeDefinitions with no value type specified in iterable type array\\.$#',
  470. 'count' => 1,
  471. 'path' => __DIR__ . '/../../src/Fixer/Operator/TernaryToElvisOperatorFixer.php',
  472. ];
  473. $ignoreErrors[] = [
  474. 'message' => '#^Variable method call on \\$this\\(PhpCsFixer\\\\Fixer\\\\PhpUnit\\\\PhpUnitConstructFixer\\)\\.$#',
  475. 'count' => 1,
  476. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitConstructFixer.php',
  477. ];
  478. $ignoreErrors[] = [
  479. 'message' => '#^Only booleans are allowed in a negated boolean, mixed given\\.$#',
  480. 'count' => 1,
  481. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitDataProviderStaticFixer.php',
  482. ];
  483. $ignoreErrors[] = [
  484. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\PhpUnit\\\\PhpUnitDedicateAssertFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  485. 'count' => 1,
  486. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitDedicateAssertFixer.php',
  487. ];
  488. $ignoreErrors[] = [
  489. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\PhpUnit\\\\PhpUnitExpectationFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  490. 'count' => 1,
  491. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitExpectationFixer.php',
  492. ];
  493. $ignoreErrors[] = [
  494. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\PhpUnit\\\\PhpUnitMockFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  495. 'count' => 1,
  496. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitMockFixer.php',
  497. ];
  498. $ignoreErrors[] = [
  499. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\PhpUnit\\\\PhpUnitNamespacedFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  500. 'count' => 1,
  501. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitNamespacedFixer.php',
  502. ];
  503. $ignoreErrors[] = [
  504. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\PhpUnit\\\\PhpUnitNoExpectationAnnotationFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  505. 'count' => 1,
  506. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitNoExpectationAnnotationFixer.php',
  507. ];
  508. $ignoreErrors[] = [
  509. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\AlignMultilineCommentFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  510. 'count' => 1,
  511. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/AlignMultilineCommentFixer.php',
  512. ];
  513. $ignoreErrors[] = [
  514. 'message' => '#^Only booleans are allowed in a negated boolean, mixed given\\.$#',
  515. 'count' => 1,
  516. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/GeneralPhpdocTagRenameFixer.php',
  517. ];
  518. $ignoreErrors[] = [
  519. 'message' => '#^Only booleans are allowed in an if condition, mixed given\\.$#',
  520. 'count' => 1,
  521. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/GeneralPhpdocTagRenameFixer.php',
  522. ];
  523. $ignoreErrors[] = [
  524. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\NoSuperfluousPhpdocTagsFixer\\:\\:annotationIsSuperfluous\\(\\) has parameter \\$info with no value type specified in iterable type array\\.$#',
  525. 'count' => 1,
  526. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/NoSuperfluousPhpdocTagsFixer.php',
  527. ];
  528. $ignoreErrors[] = [
  529. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\NoSuperfluousPhpdocTagsFixer\\:\\:removeSuperfluousModifierAnnotation\\(\\) has parameter \\$element with no value type specified in iterable type array\\.$#',
  530. 'count' => 1,
  531. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/NoSuperfluousPhpdocTagsFixer.php',
  532. ];
  533. $ignoreErrors[] = [
  534. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\NoSuperfluousPhpdocTagsFixer\\:\\:toComparableNames\\(\\) return type has no value type specified in iterable type array\\.$#',
  535. 'count' => 1,
  536. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/NoSuperfluousPhpdocTagsFixer.php',
  537. ];
  538. $ignoreErrors[] = [
  539. 'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
  540. 'count' => 1,
  541. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocAddMissingParamAnnotationFixer.php',
  542. ];
  543. $ignoreErrors[] = [
  544. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\PhpdocAlignFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  545. 'count' => 1,
  546. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocAlignFixer.php',
  547. ];
  548. $ignoreErrors[] = [
  549. 'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
  550. 'count' => 2,
  551. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocAlignFixer.php',
  552. ];
  553. $ignoreErrors[] = [
  554. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\PhpdocNoAliasTagFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  555. 'count' => 1,
  556. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocNoAliasTagFixer.php',
  557. ];
  558. $ignoreErrors[] = [
  559. 'message' => '#^For loop initial assignment overwrites variable \\$pos\\.$#',
  560. 'count' => 2,
  561. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocSeparationFixer.php',
  562. ];
  563. $ignoreErrors[] = [
  564. 'message' => '#^Only booleans are allowed in a negated boolean, mixed given\\.$#',
  565. 'count' => 1,
  566. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocSeparationFixer.php',
  567. ];
  568. $ignoreErrors[] = [
  569. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\PhpdocSeparationFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  570. 'count' => 1,
  571. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocSeparationFixer.php',
  572. ];
  573. $ignoreErrors[] = [
  574. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\PhpdocTagCasingFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  575. 'count' => 1,
  576. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocTagCasingFixer.php',
  577. ];
  578. $ignoreErrors[] = [
  579. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\|null\\) of method PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\PhpdocToCommentFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  580. 'count' => 1,
  581. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocToCommentFixer.php',
  582. ];
  583. $ignoreErrors[] = [
  584. 'message' => '#^Foreach overwrites \\$index with its key variable\\.$#',
  585. 'count' => 1,
  586. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocTrimConsecutiveBlankLineSeparationFixer.php',
  587. ];
  588. $ignoreErrors[] = [
  589. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\PhpdocTypesFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  590. 'count' => 1,
  591. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocTypesFixer.php',
  592. ];
  593. $ignoreErrors[] = [
  594. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Strict\\\\StrictParamFixer\\:\\:fixFunction\\(\\) has parameter \\$functionParams with no value type specified in iterable type array\\.$#',
  595. 'count' => 1,
  596. 'path' => __DIR__ . '/../../src/Fixer/Strict/StrictParamFixer.php',
  597. ];
  598. $ignoreErrors[] = [
  599. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Whitespace\\\\BlankLineBeforeStatementFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  600. 'count' => 1,
  601. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/BlankLineBeforeStatementFixer.php',
  602. ];
  603. $ignoreErrors[] = [
  604. 'message' => '#^Variable \\$index might not be defined\\.$#',
  605. 'count' => 1,
  606. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/HeredocIndentationFixer.php',
  607. ];
  608. $ignoreErrors[] = [
  609. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Whitespace\\\\NoExtraBlankLinesFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  610. 'count' => 1,
  611. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/NoExtraBlankLinesFixer.php',
  612. ];
  613. $ignoreErrors[] = [
  614. 'message' => '#^Variable \\$end might not be defined\\.$#',
  615. 'count' => 2,
  616. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/NoExtraBlankLinesFixer.php',
  617. ];
  618. $ignoreErrors[] = [
  619. 'message' => '#^Variable method call on \\$this\\(PhpCsFixer\\\\Fixer\\\\Whitespace\\\\NoExtraBlankLinesFixer\\)\\.$#',
  620. 'count' => 2,
  621. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/NoExtraBlankLinesFixer.php',
  622. ];
  623. $ignoreErrors[] = [
  624. 'message' => '#^For loop initial assignment overwrites variable \\$endIndex\\.$#',
  625. 'count' => 2,
  626. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/StatementIndentationFixer.php',
  627. ];
  628. $ignoreErrors[] = [
  629. 'message' => '#^For loop initial assignment overwrites variable \\$i\\.$#',
  630. 'count' => 1,
  631. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/StatementIndentationFixer.php',
  632. ];
  633. $ignoreErrors[] = [
  634. 'message' => '#^Parameter \\#1 \\$configuration \\(array\\<string, mixed\\>\\) of method PhpCsFixer\\\\Fixer\\\\Whitespace\\\\TypesSpacesFixer\\:\\:configure\\(\\) should be contravariant with parameter \\$configuration \\(array\\) of method PhpCsFixer\\\\Fixer\\\\ConfigurableFixerInterface\\:\\:configure\\(\\)$#',
  635. 'count' => 1,
  636. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/TypesSpacesFixer.php',
  637. ];
  638. $ignoreErrors[] = [
  639. 'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
  640. 'count' => 1,
  641. 'path' => __DIR__ . '/../../src/Linter/ProcessLintingResult.php',
  642. ];
  643. $ignoreErrors[] = [
  644. 'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
  645. 'count' => 1,
  646. 'path' => __DIR__ . '/../../src/Runner/Runner.php',
  647. ];
  648. $ignoreErrors[] = [
  649. 'message' => '#^Parameter \\#1 \\$className \\(string\\) of method PhpCsFixer\\\\StdinFileInfo\\:\\:getFileInfo\\(\\) should be contravariant with parameter \\$class \\(string\\|null\\) of method SplFileInfo\\:\\:getFileInfo\\(\\)$#',
  650. 'count' => 1,
  651. 'path' => __DIR__ . '/../../src/StdinFileInfo.php',
  652. ];
  653. $ignoreErrors[] = [
  654. 'message' => '#^Parameter \\#1 \\$className \\(string\\) of method PhpCsFixer\\\\StdinFileInfo\\:\\:getPathInfo\\(\\) should be contravariant with parameter \\$class \\(string\\|null\\) of method SplFileInfo\\:\\:getPathInfo\\(\\)$#',
  655. 'count' => 1,
  656. 'path' => __DIR__ . '/../../src/StdinFileInfo.php',
  657. ];
  658. $ignoreErrors[] = [
  659. 'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
  660. 'count' => 2,
  661. 'path' => __DIR__ . '/../../src/Tokenizer/Analyzer/Analysis/ArgumentAnalysis.php',
  662. ];
  663. $ignoreErrors[] = [
  664. 'message' => '#^For loop initial assignment overwrites variable \\$index\\.$#',
  665. 'count' => 1,
  666. 'path' => __DIR__ . '/../../src/Tokenizer/Analyzer/CommentsAnalyzer.php',
  667. ];
  668. $ignoreErrors[] = [
  669. 'message' => '#^Foreach overwrites \\$key with its key variable\\.$#',
  670. 'count' => 1,
  671. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  672. ];
  673. $ignoreErrors[] = [
  674. 'message' => '#^Parameter \\#1 \\$array \\(array\\<PhpCsFixer\\\\Tokenizer\\\\Token\\>\\) of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:fromArray\\(\\) should be contravariant with parameter \\$array \\(array\\<int, mixed\\>\\) of method SplFixedArray\\<PhpCsFixer\\\\Tokenizer\\\\Token\\>\\:\\:fromArray\\(\\)$#',
  675. 'count' => 1,
  676. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  677. ];
  678. $ignoreErrors[] = [
  679. 'message' => '#^Parameter \\#1 \\$index \\(int\\) of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:offsetSet\\(\\) should be contravariant with parameter \\$index \\(int\\|null\\) of method SplFixedArray\\<PhpCsFixer\\\\Tokenizer\\\\Token\\>\\:\\:offsetSet\\(\\)$#',
  680. 'count' => 1,
  681. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  682. ];
  683. $ignoreErrors[] = [
  684. 'message' => '#^Parameter \\#1 \\$index \\(int\\) of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:offsetSet\\(\\) should be contravariant with parameter \\$offset \\(int\\|null\\) of method ArrayAccess\\<int,PhpCsFixer\\\\Tokenizer\\\\Token\\|null\\>\\:\\:offsetSet\\(\\)$#',
  685. 'count' => 1,
  686. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  687. ];
  688. $ignoreErrors[] = [
  689. 'message' => '#^Parameter \\#2 \\$newval \\(PhpCsFixer\\\\Tokenizer\\\\Token\\) of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:offsetSet\\(\\) should be contravariant with parameter \\$value \\(PhpCsFixer\\\\Tokenizer\\\\Token\\|null\\) of method ArrayAccess\\<int,PhpCsFixer\\\\Tokenizer\\\\Token\\|null\\>\\:\\:offsetSet\\(\\)$#',
  690. 'count' => 1,
  691. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  692. ];
  693. $ignoreErrors[] = [
  694. 'message' => '#^Parameter \\#2 \\$newval \\(PhpCsFixer\\\\Tokenizer\\\\Token\\) of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:offsetSet\\(\\) should be contravariant with parameter \\$value \\(PhpCsFixer\\\\Tokenizer\\\\Token\\|null\\) of method SplFixedArray\\<PhpCsFixer\\\\Tokenizer\\\\Token\\>\\:\\:offsetSet\\(\\)$#',
  695. 'count' => 1,
  696. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  697. ];
  698. $ignoreErrors[] = [
  699. 'message' => '#^Variable \\$count might not be defined\\.$#',
  700. 'count' => 1,
  701. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  702. ];
  703. $ignoreErrors[] = [
  704. 'message' => '#^Variable \\$index might not be defined\\.$#',
  705. 'count' => 5,
  706. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  707. ];
  708. $ignoreErrors[] = [
  709. 'message' => '#^For loop initial assignment overwrites variable \\$index\\.$#',
  710. 'count' => 1,
  711. 'path' => __DIR__ . '/../../src/Tokenizer/Transformer/ConstructorPromotionTransformer.php',
  712. ];
  713. $ignoreErrors[] = [
  714. 'message' => '#^Variable \\$expression might not be defined\\.$#',
  715. 'count' => 1,
  716. 'path' => __DIR__ . '/../../tests/DocBlock/TypeExpressionTest.php',
  717. ];
  718. $ignoreErrors[] = [
  719. 'message' => '#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#',
  720. 'count' => 1,
  721. 'path' => __DIR__ . '/../../tests/Test/AbstractIntegrationCaseFactory.php',
  722. ];
  723. $ignoreErrors[] = [
  724. 'message' => '#^Parameter \\#1 \\$index \\(int\\) of method PhpCsFixer\\\\Tests\\\\Test\\\\TokensWithObservedTransformers\\:\\:offsetSet\\(\\) should be contravariant with parameter \\$offset \\(int\\|null\\) of method ArrayAccess\\<int,PhpCsFixer\\\\Tokenizer\\\\Token\\|null\\>\\:\\:offsetSet\\(\\)$#',
  725. 'count' => 1,
  726. 'path' => __DIR__ . '/../../tests/Test/TokensWithObservedTransformers.php',
  727. ];
  728. $ignoreErrors[] = [
  729. 'message' => '#^Parameter \\#2 \\$newval \\(PhpCsFixer\\\\Tokenizer\\\\Token\\) of method PhpCsFixer\\\\Tests\\\\Test\\\\TokensWithObservedTransformers\\:\\:offsetSet\\(\\) should be contravariant with parameter \\$value \\(PhpCsFixer\\\\Tokenizer\\\\Token\\|null\\) of method ArrayAccess\\<int,PhpCsFixer\\\\Tokenizer\\\\Token\\|null\\>\\:\\:offsetSet\\(\\)$#',
  730. 'count' => 1,
  731. 'path' => __DIR__ . '/../../tests/Test/TokensWithObservedTransformers.php',
  732. ];
  733. return ['parameters' => ['ignoreErrors' => $ignoreErrors]];