baseline.php 74 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285
  1. <?php declare(strict_types = 1);
  2. $ignoreErrors = [];
  3. $ignoreErrors[] = [
  4. 'message' => '#^Cannot call method getPriority\\(\\) on PhpCsFixer\\\\Fixer\\\\FixerInterface\\|false\\.$#',
  5. 'count' => 1,
  6. 'path' => __DIR__ . '/../../src/AbstractProxyFixer.php',
  7. ];
  8. $ignoreErrors[] = [
  9. 'message' => '#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#',
  10. 'count' => 1,
  11. 'path' => __DIR__ . '/../../src/Cache/Signature.php',
  12. ];
  13. $ignoreErrors[] = [
  14. 'message' => '#^Method PhpCsFixer\\\\Config\\:\\:getFinder\\(\\) should return PhpCsFixer\\\\Finder but returns iterable\\<SplFileInfo\\>\\.$#',
  15. 'count' => 1,
  16. 'path' => __DIR__ . '/../../src/Config.php',
  17. ];
  18. $ignoreErrors[] = [
  19. 'message' => '#^Only numeric types are allowed in \\-, int\\|false given on the left side\\.$#',
  20. 'count' => 1,
  21. 'path' => __DIR__ . '/../../src/Console/Command/CheckCommand.php',
  22. ];
  23. $ignoreErrors[] = [
  24. 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#',
  25. 'count' => 1,
  26. 'path' => __DIR__ . '/../../src/Console/Command/CheckCommand.php',
  27. ];
  28. $ignoreErrors[] = [
  29. 'message' => '#^Parameter \\#1 \\$names of static method PhpCsFixer\\\\Utils\\:\\:naturalLanguageJoin\\(\\) expects list\\<string\\>, array\\<non\\-falsy\\-string\\> given\\.$#',
  30. 'count' => 1,
  31. 'path' => __DIR__ . '/../../src/Console/Command/DescribeCommand.php',
  32. ];
  33. $ignoreErrors[] = [
  34. 'message' => '#^Parameter \\#3 \\$cwd of class PhpCsFixer\\\\Console\\\\ConfigurationResolver constructor expects string, string\\|false given\\.$#',
  35. 'count' => 1,
  36. 'path' => __DIR__ . '/../../src/Console/Command/DescribeCommand.php',
  37. ];
  38. $ignoreErrors[] = [
  39. 'message' => '#^Parameter \\#3 \\$cwd of class PhpCsFixer\\\\Console\\\\ConfigurationResolver constructor expects string, string\\|false given\\.$#',
  40. 'count' => 1,
  41. 'path' => __DIR__ . '/../../src/Console/Command/FixCommand.php',
  42. ];
  43. $ignoreErrors[] = [
  44. 'message' => '#^Parameter \\#3 \\$time of class PhpCsFixer\\\\Console\\\\Report\\\\FixReport\\\\ReportSummary constructor expects int, float\\|int given\\.$#',
  45. 'count' => 1,
  46. 'path' => __DIR__ . '/../../src/Console/Command/FixCommand.php',
  47. ];
  48. $ignoreErrors[] = [
  49. 'message' => '#^Parameter \\#2 \\$basePath of static method Symfony\\\\Component\\\\Filesystem\\\\Path\\:\\:makeRelative\\(\\) expects string, string\\|false given\\.$#',
  50. 'count' => 1,
  51. 'path' => __DIR__ . '/../../src/Console/Command/ListFilesCommand.php',
  52. ];
  53. $ignoreErrors[] = [
  54. 'message' => '#^Parameter \\#3 \\$cwd of class PhpCsFixer\\\\Console\\\\ConfigurationResolver constructor expects string, string\\|false given\\.$#',
  55. 'count' => 1,
  56. 'path' => __DIR__ . '/../../src/Console/Command/ListFilesCommand.php',
  57. ];
  58. $ignoreErrors[] = [
  59. 'message' => '#^Parameter \\#1 \\$filename of function is_file expects string, string\\|false given\\.$#',
  60. 'count' => 1,
  61. 'path' => __DIR__ . '/../../src/Console/ConfigurationResolver.php',
  62. ];
  63. $ignoreErrors[] = [
  64. 'message' => '#^Parameter \\#1 \\$names of static method PhpCsFixer\\\\Utils\\:\\:naturalLanguageJoin\\(\\) expects list\\<string\\>, non\\-empty\\-array\\<int\\<0, max\\>, string\\> given\\.$#',
  65. 'count' => 1,
  66. 'path' => __DIR__ . '/../../src/Console/ConfigurationResolver.php',
  67. ];
  68. $ignoreErrors[] = [
  69. 'message' => '#^Property PhpCsFixer\\\\Console\\\\ConfigurationResolver\\:\\:\\$path \\(list\\<string\\>\\|null\\) does not accept array\\<non\\-empty\\-string\\>\\.$#',
  70. 'count' => 1,
  71. 'path' => __DIR__ . '/../../src/Console/ConfigurationResolver.php',
  72. ];
  73. $ignoreErrors[] = [
  74. 'message' => '#^Offset \'line\' might not exist on array\\{function\\?\\: string, line\\?\\: int, file\\: string, class\\?\\: class\\-string, type\\?\\: \'\\-\\>\'\\|\'\\:\\:\', args\\?\\: array, object\\?\\: object\\}\\.$#',
  75. 'count' => 1,
  76. 'path' => __DIR__ . '/../../src/Console/Output/ErrorOutput.php',
  77. ];
  78. $ignoreErrors[] = [
  79. 'message' => '#^Method PhpCsFixer\\\\Console\\\\Report\\\\FixReport\\\\CheckstyleReporter\\:\\:generate\\(\\) should return string but returns string\\|false\\.$#',
  80. 'count' => 1,
  81. 'path' => __DIR__ . '/../../src/Console/Report/FixReport/CheckstyleReporter.php',
  82. ];
  83. $ignoreErrors[] = [
  84. 'message' => '#^Parameter \\#1 \\$text of static method Symfony\\\\Component\\\\Console\\\\Formatter\\\\OutputFormatter\\:\\:escape\\(\\) expects string, string\\|false given\\.$#',
  85. 'count' => 1,
  86. 'path' => __DIR__ . '/../../src/Console/Report/FixReport/CheckstyleReporter.php',
  87. ];
  88. $ignoreErrors[] = [
  89. 'message' => '#^Parameter \\#1 \\$diffs of static method PhpCsFixer\\\\Console\\\\Report\\\\FixReport\\\\GitlabReporter\\:\\:getLines\\(\\) expects list\\<SebastianBergmann\\\\Diff\\\\Diff\\>, array\\<SebastianBergmann\\\\Diff\\\\Diff\\> given\\.$#',
  90. 'count' => 1,
  91. 'path' => __DIR__ . '/../../src/Console/Report/FixReport/GitlabReporter.php',
  92. ];
  93. $ignoreErrors[] = [
  94. 'message' => '#^Method PhpCsFixer\\\\Console\\\\Report\\\\FixReport\\\\JunitReporter\\:\\:generate\\(\\) should return string but returns string\\|false\\.$#',
  95. 'count' => 1,
  96. 'path' => __DIR__ . '/../../src/Console/Report/FixReport/JunitReporter.php',
  97. ];
  98. $ignoreErrors[] = [
  99. 'message' => '#^Parameter \\#1 \\$text of static method Symfony\\\\Component\\\\Console\\\\Formatter\\\\OutputFormatter\\:\\:escape\\(\\) expects string, string\\|false given\\.$#',
  100. 'count' => 1,
  101. 'path' => __DIR__ . '/../../src/Console/Report/FixReport/JunitReporter.php',
  102. ];
  103. $ignoreErrors[] = [
  104. 'message' => '#^Parameter \\#1 \\$reporter of method PhpCsFixer\\\\Console\\\\Report\\\\FixReport\\\\ReporterFactory\\:\\:registerReporter\\(\\) expects PhpCsFixer\\\\Console\\\\Report\\\\FixReport\\\\ReporterInterface, object given\\.$#',
  105. 'count' => 1,
  106. 'path' => __DIR__ . '/../../src/Console/Report/FixReport/ReporterFactory.php',
  107. ];
  108. $ignoreErrors[] = [
  109. 'message' => '#^Method PhpCsFixer\\\\Console\\\\Report\\\\FixReport\\\\XmlReporter\\:\\:generate\\(\\) should return string but returns string\\|false\\.$#',
  110. 'count' => 1,
  111. 'path' => __DIR__ . '/../../src/Console/Report/FixReport/XmlReporter.php',
  112. ];
  113. $ignoreErrors[] = [
  114. 'message' => '#^Parameter \\#1 \\$text of static method Symfony\\\\Component\\\\Console\\\\Formatter\\\\OutputFormatter\\:\\:escape\\(\\) expects string, string\\|false given\\.$#',
  115. 'count' => 1,
  116. 'path' => __DIR__ . '/../../src/Console/Report/FixReport/XmlReporter.php',
  117. ];
  118. $ignoreErrors[] = [
  119. 'message' => '#^Parameter \\#1 \\$reporter of method PhpCsFixer\\\\Console\\\\Report\\\\ListSetsReport\\\\ReporterFactory\\:\\:registerReporter\\(\\) expects PhpCsFixer\\\\Console\\\\Report\\\\ListSetsReport\\\\ReporterInterface, object given\\.$#',
  120. 'count' => 1,
  121. 'path' => __DIR__ . '/../../src/Console/Report/ListSetsReport/ReporterFactory.php',
  122. ];
  123. $ignoreErrors[] = [
  124. 'message' => '#^Only numeric types are allowed in \\+, int\\|false given on the left side\\.$#',
  125. 'count' => 1,
  126. 'path' => __DIR__ . '/../../src/Documentation/FixerDocumentGenerator.php',
  127. ];
  128. $ignoreErrors[] = [
  129. 'message' => '#^Parameter \\#1 \\$names of static method PhpCsFixer\\\\Utils\\:\\:naturalLanguageJoin\\(\\) expects list\\<string\\>, array\\<non\\-falsy\\-string\\> given\\.$#',
  130. 'count' => 1,
  131. 'path' => __DIR__ . '/../../src/Documentation/FixerDocumentGenerator.php',
  132. ];
  133. $ignoreErrors[] = [
  134. 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\|false given\\.$#',
  135. 'count' => 1,
  136. 'path' => __DIR__ . '/../../src/Documentation/FixerDocumentGenerator.php',
  137. ];
  138. $ignoreErrors[] = [
  139. 'message' => '#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, string\\|false given\\.$#',
  140. 'count' => 1,
  141. 'path' => __DIR__ . '/../../src/Documentation/FixerDocumentGenerator.php',
  142. ];
  143. $ignoreErrors[] = [
  144. 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\|false given\\.$#',
  145. 'count' => 2,
  146. 'path' => __DIR__ . '/../../src/Documentation/RuleSetDocumentationGenerator.php',
  147. ];
  148. $ignoreErrors[] = [
  149. 'message' => '#^Method PhpCsFixer\\\\Error\\\\ErrorsManager\\:\\:getExceptionErrors\\(\\) should return list\\<PhpCsFixer\\\\Error\\\\Error\\> but returns array\\<int\\<0, max\\>, PhpCsFixer\\\\Error\\\\Error\\>\\.$#',
  150. 'count' => 1,
  151. 'path' => __DIR__ . '/../../src/Error/ErrorsManager.php',
  152. ];
  153. $ignoreErrors[] = [
  154. 'message' => '#^Method PhpCsFixer\\\\Error\\\\ErrorsManager\\:\\:getInvalidErrors\\(\\) should return list\\<PhpCsFixer\\\\Error\\\\Error\\> but returns array\\<int\\<0, max\\>, PhpCsFixer\\\\Error\\\\Error\\>\\.$#',
  155. 'count' => 1,
  156. 'path' => __DIR__ . '/../../src/Error/ErrorsManager.php',
  157. ];
  158. $ignoreErrors[] = [
  159. 'message' => '#^Method PhpCsFixer\\\\Error\\\\ErrorsManager\\:\\:getLintErrors\\(\\) should return list\\<PhpCsFixer\\\\Error\\\\Error\\> but returns array\\<int\\<0, max\\>, PhpCsFixer\\\\Error\\\\Error\\>\\.$#',
  160. 'count' => 1,
  161. 'path' => __DIR__ . '/../../src/Error/ErrorsManager.php',
  162. ];
  163. $ignoreErrors[] = [
  164. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\AbstractPhpUnitFixer\\:\\:addInternalAnnotation\\(\\) should return list\\<PhpCsFixer\\\\DocBlock\\\\Line\\> but returns array\\<int\\<0, max\\>, PhpCsFixer\\\\DocBlock\\\\Line\\|non\\-falsy\\-string\\>\\.$#',
  165. 'count' => 1,
  166. 'path' => __DIR__ . '/../../src/Fixer/AbstractPhpUnitFixer.php',
  167. ];
  168. $ignoreErrors[] = [
  169. 'message' => '#^Parameter \\#1 \\$index of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:getNextTokenOfKind\\(\\) expects int, int\\|false given\\.$#',
  170. 'count' => 1,
  171. 'path' => __DIR__ . '/../../src/Fixer/Alias/PowToExponentiationFixer.php',
  172. ];
  173. $ignoreErrors[] = [
  174. 'message' => '#^Parameter \\#1 \\$slices of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:insertSlices\\(\\) expects array\\<int, list\\<PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|PhpCsFixer\\\\Tokenizer\\\\Tokens\\>, array\\<\'\'\\|int, array\\{PhpCsFixer\\\\Tokenizer\\\\Token, PhpCsFixer\\\\Tokenizer\\\\Token\\}\\|PhpCsFixer\\\\Tokenizer\\\\Token\\> given\\.$#',
  175. 'count' => 1,
  176. 'path' => __DIR__ . '/../../src/Fixer/ArrayNotation/YieldFromArrayToYieldsFixer.php',
  177. ];
  178. $ignoreErrors[] = [
  179. 'message' => '#^Cannot access offset \'end\' on array\\{name\\: string, start\\: int, end\\: int\\}\\|false\\.$#',
  180. 'count' => 1,
  181. 'path' => __DIR__ . '/../../src/Fixer/AttributeNotation/OrderedAttributesFixer.php',
  182. ];
  183. $ignoreErrors[] = [
  184. 'message' => '#^Cannot access offset \'end\' on array\\{start\\: int, end\\: int, name\\: string\\}\\|false\\.$#',
  185. 'count' => 1,
  186. 'path' => __DIR__ . '/../../src/Fixer/AttributeNotation/OrderedAttributesFixer.php',
  187. ];
  188. $ignoreErrors[] = [
  189. 'message' => '#^Parameter \\#1 \\$string of function substr expects string, string\\|false given\\.$#',
  190. 'count' => 1,
  191. 'path' => __DIR__ . '/../../src/Fixer/AttributeNotation/OrderedAttributesFixer.php',
  192. ];
  193. $ignoreErrors[] = [
  194. 'message' => '#^Parameter \\#1 \\$string of function strlen expects string, string\\|false given\\.$#',
  195. 'count' => 3,
  196. 'path' => __DIR__ . '/../../src/Fixer/Basic/PsrAutoloadingFixer.php',
  197. ];
  198. $ignoreErrors[] = [
  199. 'message' => '#^Cannot access offset \'elements\' on array\\{index\\: int, open\\: int\\|null, close\\: int\\<0, max\\>, elements\\: list\\<array\\{token\\: PhpCsFixer\\\\Tokenizer\\\\Token, type\\: \'case\'\\|\'const\'\\|\'method\'\\|\'property\'\\|\'trait_import\', index\\: int, start\\: int, end\\: int\\}\\>\\}\\|false\\.$#',
  200. 'count' => 1,
  201. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  202. ];
  203. $ignoreErrors[] = [
  204. 'message' => '#^Cannot access offset \'index\' on array\\{classIndex\\: int, token\\: PhpCsFixer\\\\Tokenizer\\\\Token, type\\: \'case\'\\|\'const\'\\|\'method\'\\|\'property\'\\|\'trait_import\'\\}\\|false\\.$#',
  205. 'count' => 1,
  206. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  207. ];
  208. $ignoreErrors[] = [
  209. 'message' => '#^Offset \'end\' might not exist on array\\{token\\: PhpCsFixer\\\\Tokenizer\\\\Token, type\\: string, index\\: int, start\\?\\: int, end\\?\\: int\\}\\.$#',
  210. 'count' => 3,
  211. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  212. ];
  213. $ignoreErrors[] = [
  214. 'message' => '#^Offset \'start\' might not exist on array\\{token\\: PhpCsFixer\\\\Tokenizer\\\\Token, type\\: string, index\\: int, start\\?\\: int, end\\?\\: int\\}\\.$#',
  215. 'count' => 11,
  216. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  217. ];
  218. $ignoreErrors[] = [
  219. 'message' => '#^Parameter \\#2 \\$class of method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassAttributesSeparationFixer\\:\\:getFirstTokenIndexOfClassElement\\(\\) expects array\\{index\\: int, open\\: int, close\\: int, elements\\: non\\-empty\\-list\\<array\\{token\\: PhpCsFixer\\\\Tokenizer\\\\Token, type\\: string, index\\: int, start\\?\\: int, end\\?\\: int\\}\\>\\}, array\\{index\\: int, open\\: int\\|null, close\\: int\\<0, max\\>, elements\\: list\\<array\\{token\\: PhpCsFixer\\\\Tokenizer\\\\Token, type\\: \'case\'\\|\'const\'\\|\'method\'\\|\'property\'\\|\'trait_import\', index\\: int, start\\: int, end\\: int\\}\\>\\}\\|false given\\.$#',
  220. 'count' => 1,
  221. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  222. ];
  223. $ignoreErrors[] = [
  224. 'message' => '#^Parameter \\#2 \\$class of method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassAttributesSeparationFixer\\:\\:getLastTokenIndexOfClassElement\\(\\) expects array\\{index\\: int, open\\: int, close\\: int, elements\\: non\\-empty\\-list\\<array\\{token\\: PhpCsFixer\\\\Tokenizer\\\\Token, type\\: string, index\\: int, start\\?\\: int, end\\?\\: int\\}\\>\\}, array\\{index\\: int, open\\: int\\|null, close\\: int\\<0, max\\>, elements\\: list\\<array\\{token\\: PhpCsFixer\\\\Tokenizer\\\\Token, type\\: \'case\'\\|\'const\'\\|\'method\'\\|\'property\'\\|\'trait_import\', index\\: int, start\\: int, end\\: int\\}\\>\\}\\|false given\\.$#',
  225. 'count' => 1,
  226. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  227. ];
  228. $ignoreErrors[] = [
  229. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassAttributesSeparationFixer\\:\\:\\$classElementTypes \\(array\\<string, string\\>\\) does not accept array\\<int\\|string, mixed\\>\\.$#',
  230. 'count' => 1,
  231. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php',
  232. ];
  233. $ignoreErrors[] = [
  234. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\ClassDefinitionFixer\\:\\:getClassyDefinitionInfo\\(\\) should return array\\{start\\: int, classy\\: int, open\\: int, extends\\: array\\{start\\: int, numberOfExtends\\: int, multiLine\\: bool\\}\\|false, implements\\: array\\{start\\: int, numberOfImplements\\: int, multiLine\\: bool\\}\\|false, anonymousClass\\: bool, final\\: int\\|false, abstract\\: int\\|false, \\.\\.\\.\\} but returns array\\{classy\\: int, open\\: int\\|null, extends\\: array\\<string, bool\\|int\\>\\|false, implements\\: array\\<string, bool\\|int\\>\\|false, anonymousClass\\: bool, final\\: int\\|false, abstract\\: int\\|false, readonly\\: int\\|false, \\.\\.\\.\\}\\.$#',
  235. 'count' => 1,
  236. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  237. ];
  238. $ignoreErrors[] = [
  239. 'message' => '#^Only booleans are allowed in a negated boolean, bool\\|int given\\.$#',
  240. 'count' => 1,
  241. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  242. ];
  243. $ignoreErrors[] = [
  244. 'message' => '#^Only booleans are allowed in an elseif condition, array\\<string, bool\\|int\\>\\|false given\\.$#',
  245. 'count' => 1,
  246. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  247. ];
  248. $ignoreErrors[] = [
  249. 'message' => '#^Only booleans are allowed in an if condition, array\\<string, bool\\|int\\>\\|false given\\.$#',
  250. 'count' => 1,
  251. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  252. ];
  253. $ignoreErrors[] = [
  254. 'message' => '#^Only numeric types are allowed in pre\\-increment, bool\\|int given\\.$#',
  255. 'count' => 1,
  256. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ClassDefinitionFixer.php',
  257. ];
  258. $ignoreErrors[] = [
  259. 'message' => '#^Only numeric types are allowed in \\+, int\\|false given on the left side\\.$#',
  260. 'count' => 1,
  261. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/NoBlankLinesAfterClassOpeningFixer.php',
  262. ];
  263. $ignoreErrors[] = [
  264. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\NoPhp4ConstructorFixer\\:\\:findFunction\\(\\) should return array\\{nameIndex\\: int, startIndex\\: int, endIndex\\: int, bodyIndex\\: int, modifiers\\: list\\<int\\>\\}\\|null but returns array\\{nameIndex\\: int\\<0, max\\>, startIndex\\: int, endIndex\\: int\\|null, bodyIndex\\: int\\|null, modifiers\\: array\\<\'\'\\|int, int\\>\\}\\.$#',
  265. 'count' => 1,
  266. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/NoPhp4ConstructorFixer.php',
  267. ];
  268. $ignoreErrors[] = [
  269. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\NoPhp4ConstructorFixer\\:\\:getWrapperMethodSequence\\(\\) should return array\\{list\\<list\\<array\\{int, string\\}\\|int\\|string\\>\\>, array\\{3\\: false\\}\\} but returns array\\{list\\<non\\-empty\\-list\\<\'\\(\'\\|\'\\)\'\\|\',\'\\|\';\'\\|\'\\{\'\\|\'\\}\'\\|array\\{0\\: int, 1\\?\\: string\\}\\>\\>, array\\{3\\: false\\}\\}\\.$#',
  270. 'count' => 1,
  271. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/NoPhp4ConstructorFixer.php',
  272. ];
  273. $ignoreErrors[] = [
  274. 'message' => '#^Parameter \\#1 \\$sequence of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:findSequence\\(\\) expects non\\-empty\\-list\\<array\\{0\\: int, 1\\?\\: string\\}\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string\\>, list\\<array\\{int, string\\}\\|int\\|string\\> given\\.$#',
  275. 'count' => 2,
  276. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/NoPhp4ConstructorFixer.php',
  277. ];
  278. $ignoreErrors[] = [
  279. 'message' => '#^Cannot access offset \'type\' on array\\{classIndex\\: int, token\\: PhpCsFixer\\\\Tokenizer\\\\Token, type\\: \'case\'\\|\'const\'\\|\'method\'\\|\'property\'\\|\'trait_import\'\\}\\|false\\.$#',
  280. 'count' => 1,
  281. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/NoUnneededFinalMethodFixer.php',
  282. ];
  283. $ignoreErrors[] = [
  284. 'message' => '#^Offset \'class_is_final\' might not exist on array\\{classIndex\\: int, token\\: PhpCsFixer\\\\Tokenizer\\\\Token, type\\: string, class_is_final\\?\\: bool, method_final_index\\: int\\|null, method_is_constructor\\?\\: bool, method_is_private\\: bool, method_of_enum\\: false\\}\\.$#',
  285. 'count' => 1,
  286. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/NoUnneededFinalMethodFixer.php',
  287. ];
  288. $ignoreErrors[] = [
  289. 'message' => '#^Offset \'method_is…\' might not exist on array\\{classIndex\\: int, token\\: PhpCsFixer\\\\Tokenizer\\\\Token, type\\: string, class_is_final\\: false, method_final_index\\: int\\|null, method_is_constructor\\?\\: bool, method_is_private\\: true, method_of_enum\\: false\\}\\.$#',
  290. 'count' => 1,
  291. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/NoUnneededFinalMethodFixer.php',
  292. ];
  293. $ignoreErrors[] = [
  294. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\OrderedClassElementsFixer\\:\\:getElements\\(\\) should return list\\<array\\{start\\: int, visibility\\: string, abstract\\: bool, static\\: bool, readonly\\: bool, type\\: string, name\\: string, end\\: int\\}\\> but returns list\\<array\\{start\\: int, visibility\\: \'public\', abstract\\: false, static\\: false, readonly\\: bool, type\\: string, name\\?\\: string, end\\: int\\}\\|array\\{start\\: int, visibility\\: non\\-empty\\-string, abstract\\: bool, static\\: bool, readonly\\: bool\\}\\>\\.$#',
  295. 'count' => 1,
  296. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedClassElementsFixer.php',
  297. ];
  298. $ignoreErrors[] = [
  299. 'message' => '#^Offset \'end\' might not exist on array\\{abstract\\: bool, end\\?\\: int, name\\?\\: string, readonly\\: bool, start\\: int, static\\: bool, type\\?\\: string, visibility\\: non\\-empty\\-string\\}\\.$#',
  300. 'count' => 1,
  301. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedClassElementsFixer.php',
  302. ];
  303. $ignoreErrors[] = [
  304. 'message' => '#^Parameter \\#1 \\$a of method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\OrderedClassElementsFixer\\:\\:sortGroupElements\\(\\) expects array\\{start\\: int, visibility\\: string, abstract\\: bool, static\\: bool, readonly\\: bool, type\\: string, name\\: string, end\\: int\\}, array given\\.$#',
  305. 'count' => 1,
  306. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedClassElementsFixer.php',
  307. ];
  308. $ignoreErrors[] = [
  309. 'message' => '#^Parameter \\#2 \\$b of method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\OrderedClassElementsFixer\\:\\:sortGroupElements\\(\\) expects array\\{start\\: int, visibility\\: string, abstract\\: bool, static\\: bool, readonly\\: bool, type\\: string, name\\: string, end\\: int\\}, array given\\.$#',
  310. 'count' => 1,
  311. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedClassElementsFixer.php',
  312. ];
  313. $ignoreErrors[] = [
  314. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\OrderedClassElementsFixer\\:\\:\\$typePosition \\(array\\<string, int\\>\\) does not accept array\\<int\\|string, int\\>\\.$#',
  315. 'count' => 1,
  316. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedClassElementsFixer.php',
  317. ];
  318. $ignoreErrors[] = [
  319. 'message' => '#^Only iterables can be unpacked, array\\<int, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|int\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string given in argument \\#3\\.$#',
  320. 'count' => 1,
  321. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedInterfacesFixer.php',
  322. ];
  323. $ignoreErrors[] = [
  324. 'message' => '#^Parameter \\#1 \\$string of function strlen expects string, array\\<int, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|int\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string given\\.$#',
  325. 'count' => 2,
  326. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedInterfacesFixer.php',
  327. ];
  328. $ignoreErrors[] = [
  329. 'message' => '#^Parameter \\#1 \\$string1 of function strcasecmp expects string, array\\<int, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|int\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string given\\.$#',
  330. 'count' => 1,
  331. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedInterfacesFixer.php',
  332. ];
  333. $ignoreErrors[] = [
  334. 'message' => '#^Parameter \\#2 \\$string2 of function strcasecmp expects string, array\\<int, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|int\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string given\\.$#',
  335. 'count' => 1,
  336. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedInterfacesFixer.php',
  337. ];
  338. $ignoreErrors[] = [
  339. 'message' => '#^Generator expects value type array\\<int, PhpCsFixer\\\\Tokenizer\\\\Tokens\\>, array\\<int\\|string, PhpCsFixer\\\\Tokenizer\\\\Tokens\\> given\\.$#',
  340. 'count' => 1,
  341. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedTraitsFixer.php',
  342. ];
  343. $ignoreErrors[] = [
  344. 'message' => '#^Parameter \\#2 \\$elements of method PhpCsFixer\\\\Fixer\\\\ClassNotation\\\\OrderedTraitsFixer\\:\\:sort\\(\\) expects array\\<int, PhpCsFixer\\\\Tokenizer\\\\Tokens\\>, array\\<int\\<0, max\\>\\|string, PhpCsFixer\\\\Tokenizer\\\\Tokens\\> given\\.$#',
  345. 'count' => 1,
  346. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/OrderedTraitsFixer.php',
  347. ];
  348. $ignoreErrors[] = [
  349. 'message' => '#^Only booleans are allowed in &&, int\\|false\\|null given on the left side\\.$#',
  350. 'count' => 1,
  351. 'path' => __DIR__ . '/../../src/Fixer/ClassNotation/ProtectedToPrivateFixer.php',
  352. ];
  353. $ignoreErrors[] = [
  354. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\Comment\\\\CommentToPhpdocFixer\\:\\:\\$ignoredTags \\(list\\<string\\>\\) does not accept array\\<string\\>\\.$#',
  355. 'count' => 1,
  356. 'path' => __DIR__ . '/../../src/Fixer/Comment/CommentToPhpdocFixer.php',
  357. ];
  358. $ignoreErrors[] = [
  359. 'message' => '#^Argument of an invalid type array\\<int\\<0, max\\>, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|PhpCsFixer\\\\Tokenizer\\\\Token supplied for foreach, only iterables are supported\\.$#',
  360. 'count' => 1,
  361. 'path' => __DIR__ . '/../../src/Fixer/ControlStructure/IncludeFixer.php',
  362. ];
  363. $ignoreErrors[] = [
  364. 'message' => '#^Parameter \\#1 \\$possibleKind of method PhpCsFixer\\\\Tokenizer\\\\Token\\:\\:isGivenKind\\(\\) expects list\\<int\\>\\|int, list\\<int\\|string\\> given\\.$#',
  365. 'count' => 1,
  366. 'path' => __DIR__ . '/../../src/Fixer/ControlStructure/YodaStyleFixer.php',
  367. ];
  368. $ignoreErrors[] = [
  369. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\FunctionNotation\\\\ImplodeCallFixer\\:\\:getArgumentIndices\\(\\) should return array\\<int, int\\> but returns array\\<int\\|string, int\\|null\\>\\.$#',
  370. 'count' => 1,
  371. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/ImplodeCallFixer.php',
  372. ];
  373. $ignoreErrors[] = [
  374. 'message' => '#^Parameter \\#1 \\$others of method PhpCsFixer\\\\Tokenizer\\\\Token\\:\\:equalsAny\\(\\) expects list\\<array\\{0\\: int, 1\\?\\: string\\}\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string\\>, array\\<int, array\\<int, int\\|string\\>\\> given\\.$#',
  375. 'count' => 1,
  376. 'path' => __DIR__ . '/../../src/Fixer/FunctionNotation/PhpdocToReturnTypeFixer.php',
  377. ];
  378. $ignoreErrors[] = [
  379. 'message' => '#^Only numeric types are allowed in \\+, int\\|false given on the left side\\.$#',
  380. 'count' => 2,
  381. 'path' => __DIR__ . '/../../src/Fixer/Import/FullyQualifiedStrictTypesFixer.php',
  382. ];
  383. $ignoreErrors[] = [
  384. 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#',
  385. 'count' => 2,
  386. 'path' => __DIR__ . '/../../src/Fixer/Import/FullyQualifiedStrictTypesFixer.php',
  387. ];
  388. $ignoreErrors[] = [
  389. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\Import\\\\FullyQualifiedStrictTypesFixer\\:\\:\\$discoveredSymbols \\(array\\{const\\?\\: list\\<class\\-string\\>, class\\?\\: list\\<class\\-string\\>, function\\?\\: list\\<class\\-string\\>\\}\\|null\\) does not accept array\\{const\\?\\: list\\<class\\-string\\>, class\\: non\\-empty\\-list\\<string\\>, function\\?\\: list\\<class\\-string\\>\\}\\.$#',
  390. 'count' => 1,
  391. 'path' => __DIR__ . '/../../src/Fixer/Import/FullyQualifiedStrictTypesFixer.php',
  392. ];
  393. $ignoreErrors[] = [
  394. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\Import\\\\FullyQualifiedStrictTypesFixer\\:\\:\\$reservedIdentifiersByLevel \\(array\\<int\\<0, max\\>, array\\<string, true\\>\\>\\) does not accept non\\-empty\\-array\\<int, array\\<string, true\\>\\>\\.$#',
  395. 'count' => 1,
  396. 'path' => __DIR__ . '/../../src/Fixer/Import/FullyQualifiedStrictTypesFixer.php',
  397. ];
  398. $ignoreErrors[] = [
  399. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\Import\\\\FullyQualifiedStrictTypesFixer\\:\\:\\$symbolsForImport \\(array\\{const\\?\\: array\\<string, class\\-string\\>, class\\?\\: array\\<string, class\\-string\\>, function\\?\\: array\\<string, class\\-string\\>\\}\\) does not accept array\\{const\\?\\: array\\<string, string\\>, class\\?\\: array\\<string, string\\>, function\\?\\: array\\<string, string\\>\\}\\.$#',
  400. 'count' => 1,
  401. 'path' => __DIR__ . '/../../src/Fixer/Import/FullyQualifiedStrictTypesFixer.php',
  402. ];
  403. $ignoreErrors[] = [
  404. 'message' => '#^Parameter \\#1 \\$types of method PhpCsFixer\\\\DocBlock\\\\Annotation\\:\\:setTypes\\(\\) expects list\\<string\\>, array\\<int\\<0, max\\>, string\\> given\\.$#',
  405. 'count' => 1,
  406. 'path' => __DIR__ . '/../../src/Fixer/Import/GlobalNamespaceImportFixer.php',
  407. ];
  408. $ignoreErrors[] = [
  409. 'message' => '#^Parameter \\#2 \\$imports of method PhpCsFixer\\\\Tokenizer\\\\Processor\\\\ImportProcessor\\:\\:insertImports\\(\\) expects array\\{const\\?\\: array\\<int\\|string, class\\-string\\>, class\\?\\: array\\<int\\|string, class\\-string\\>, function\\?\\: array\\<int\\|string, class\\-string\\>\\}, array\\{const\\?\\: array\\<string, string\\>, function\\?\\: array\\<string, string\\>, class\\?\\: array\\<string, string\\>\\}&non\\-empty\\-array given\\.$#',
  410. 'count' => 1,
  411. 'path' => __DIR__ . '/../../src/Fixer/Import/GlobalNamespaceImportFixer.php',
  412. ];
  413. $ignoreErrors[] = [
  414. 'message' => '#^Only numeric types are allowed in \\+, int\\|false given on the left side\\.$#',
  415. 'count' => 1,
  416. 'path' => __DIR__ . '/../../src/Fixer/Import/GroupImportFixer.php',
  417. ];
  418. $ignoreErrors[] = [
  419. 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\|false given\\.$#',
  420. 'count' => 1,
  421. 'path' => __DIR__ . '/../../src/Fixer/Import/NoUnusedImportsFixer.php',
  422. ];
  423. $ignoreErrors[] = [
  424. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Import\\\\OrderedImportsFixer\\:\\:getNewOrder\\(\\) should return array\\<int, array\\{namespace\\: non\\-empty\\-string, startIndex\\: int, endIndex\\: int, importType\\: \'class\'\\|\'const\'\\|\'function\', group\\: bool\\}\\> but returns array\\<\'\'\\|int, array\\{namespace\\: string, startIndex\\: int\\|null, endIndex\\: int, importType\\: \'class\'\\|\'const\'\\|\'function\', group\\: bool\\}\\>\\.$#',
  425. 'count' => 1,
  426. 'path' => __DIR__ . '/../../src/Fixer/Import/OrderedImportsFixer.php',
  427. ];
  428. $ignoreErrors[] = [
  429. 'message' => '#^Parameter \\#1 \\$indices of method PhpCsFixer\\\\Fixer\\\\Import\\\\OrderedImportsFixer\\:\\:sortByAlgorithm\\(\\) expects array\\<int, array\\{namespace\\: non\\-empty\\-string, startIndex\\: int, endIndex\\: int, importType\\: \'class\'\\|\'const\'\\|\'function\', group\\: bool\\}\\>, array\\<\'\'\\|int, array\\{namespace\\: string, startIndex\\: int\\|null, endIndex\\: int, importType\\: \'class\'\\|\'const\'\\|\'function\', group\\: bool\\}\\> given\\.$#',
  430. 'count' => 1,
  431. 'path' => __DIR__ . '/../../src/Fixer/Import/OrderedImportsFixer.php',
  432. ];
  433. $ignoreErrors[] = [
  434. 'message' => '#^Parameter \\#1 \\$indices of method PhpCsFixer\\\\Fixer\\\\Import\\\\OrderedImportsFixer\\:\\:sortByAlgorithm\\(\\) expects array\\<int, array\\{namespace\\: non\\-empty\\-string, startIndex\\: int, endIndex\\: int, importType\\: \'class\'\\|\'const\'\\|\'function\', group\\: bool\\}\\>, non\\-empty\\-array\\<\'\'\\|int, array\\{namespace\\: string, startIndex\\: int\\|null, endIndex\\: int, importType\\: \'class\'\\|\'const\'\\|\'function\', group\\: bool\\}\\> given\\.$#',
  435. 'count' => 1,
  436. 'path' => __DIR__ . '/../../src/Fixer/Import/OrderedImportsFixer.php',
  437. ];
  438. $ignoreErrors[] = [
  439. 'message' => '#^Parameter \\#1 \\$names of static method PhpCsFixer\\\\Utils\\:\\:naturalLanguageJoin\\(\\) expects list\\<string\\>, non\\-empty\\-array given\\.$#',
  440. 'count' => 1,
  441. 'path' => __DIR__ . '/../../src/Fixer/Import/OrderedImportsFixer.php',
  442. ];
  443. $ignoreErrors[] = [
  444. 'message' => '#^Parameter \\#1 \\$names of static method PhpCsFixer\\\\Utils\\:\\:naturalLanguageJoin\\(\\) expects list\\<string\\>, non\\-empty\\-array\\<0\\|1\\|2, \'class\'\\|\'const\'\\|\'function\'\\> given\\.$#',
  445. 'count' => 1,
  446. 'path' => __DIR__ . '/../../src/Fixer/Import/OrderedImportsFixer.php',
  447. ];
  448. $ignoreErrors[] = [
  449. 'message' => '#^Only numeric types are allowed in \\+, int\\|false given on the left side\\.$#',
  450. 'count' => 2,
  451. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/CombineConsecutiveIssetsFixer.php',
  452. ];
  453. $ignoreErrors[] = [
  454. 'message' => '#^Parameter \\#1 \\$index of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:getNextMeaningfulToken\\(\\) expects int, int\\|false given\\.$#',
  455. 'count' => 2,
  456. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/CombineConsecutiveIssetsFixer.php',
  457. ];
  458. $ignoreErrors[] = [
  459. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\FunctionToConstantFixer\\:\\:\\$functionsFixMap \\(array\\<string, list\\<PhpCsFixer\\\\Tokenizer\\\\Token\\>\\>\\) does not accept non\\-empty\\-array\\<int\\|string, list\\<PhpCsFixer\\\\Tokenizer\\\\Token\\>\\>\\.$#',
  460. 'count' => 1,
  461. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/FunctionToConstantFixer.php',
  462. ];
  463. $ignoreErrors[] = [
  464. 'message' => '#^Only booleans are allowed in &&, bool\\|int given on the left side\\.$#',
  465. 'count' => 1,
  466. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php',
  467. ];
  468. $ignoreErrors[] = [
  469. 'message' => '#^Only booleans are allowed in &&, bool\\|int given on the right side\\.$#',
  470. 'count' => 2,
  471. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php',
  472. ];
  473. $ignoreErrors[] = [
  474. 'message' => '#^Only booleans are allowed in a negated boolean, bool\\|int given\\.$#',
  475. 'count' => 3,
  476. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php',
  477. ];
  478. $ignoreErrors[] = [
  479. 'message' => '#^Only booleans are allowed in an if condition, bool\\|int given\\.$#',
  480. 'count' => 2,
  481. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php',
  482. ];
  483. $ignoreErrors[] = [
  484. 'message' => '#^Only numeric types are allowed in \\+, bool\\|int given on the left side\\.$#',
  485. 'count' => 2,
  486. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php',
  487. ];
  488. $ignoreErrors[] = [
  489. 'message' => '#^Parameter \\#1 \\$index of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:getNextTokenOfKind\\(\\) expects int, bool\\|int given\\.$#',
  490. 'count' => 2,
  491. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php',
  492. ];
  493. $ignoreErrors[] = [
  494. 'message' => '#^Parameter \\#1 \\$index of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:getPrevTokenOfKind\\(\\) expects int, bool\\|int given\\.$#',
  495. 'count' => 1,
  496. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php',
  497. ];
  498. $ignoreErrors[] = [
  499. 'message' => '#^Parameter \\#1 \\$index of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:insertAt\\(\\) expects int, bool\\|int given\\.$#',
  500. 'count' => 1,
  501. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php',
  502. ];
  503. $ignoreErrors[] = [
  504. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\SingleSpaceAroundConstructFixer\\:\\:\\$fixTokenMapContainASingleSpace \\(array\\<string, int\\>\\) does not accept array\\<int\\|string, int\\>\\.$#',
  505. 'count' => 1,
  506. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/SingleSpaceAroundConstructFixer.php',
  507. ];
  508. $ignoreErrors[] = [
  509. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\SingleSpaceAroundConstructFixer\\:\\:\\$fixTokenMapFollowedByASingleSpace \\(array\\<string, int\\>\\) does not accept array\\<int\\|string, int\\>\\.$#',
  510. 'count' => 1,
  511. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/SingleSpaceAroundConstructFixer.php',
  512. ];
  513. $ignoreErrors[] = [
  514. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\LanguageConstruct\\\\SingleSpaceAroundConstructFixer\\:\\:\\$fixTokenMapPrecededByASingleSpace \\(array\\<string, int\\>\\) does not accept array\\<int\\|string, int\\>\\.$#',
  515. 'count' => 1,
  516. 'path' => __DIR__ . '/../../src/Fixer/LanguageConstruct/SingleSpaceAroundConstructFixer.php',
  517. ];
  518. $ignoreErrors[] = [
  519. 'message' => '#^Only numeric types are allowed in \\+, int\\|false given on the left side\\.$#',
  520. 'count' => 1,
  521. 'path' => __DIR__ . '/../../src/Fixer/NamespaceNotation/BlankLinesBeforeNamespaceFixer.php',
  522. ];
  523. $ignoreErrors[] = [
  524. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Operator\\\\BinaryOperatorSpacesFixer\\:\\:resolveOperatorsFromConfig\\(\\) should return array\\<string, string\\> but returns array\\<int\\|string, mixed\\>\\.$#',
  525. 'count' => 1,
  526. 'path' => __DIR__ . '/../../src/Fixer/Operator/BinaryOperatorSpacesFixer.php',
  527. ];
  528. $ignoreErrors[] = [
  529. 'message' => '#^Only booleans are allowed in a negated boolean, int\\|false given\\.$#',
  530. 'count' => 2,
  531. 'path' => __DIR__ . '/../../src/Fixer/Operator/BinaryOperatorSpacesFixer.php',
  532. ];
  533. $ignoreErrors[] = [
  534. 'message' => '#^Only numeric types are allowed in \\-, int\\<0, max\\>\\|false given on the right side\\.$#',
  535. 'count' => 1,
  536. 'path' => __DIR__ . '/../../src/Fixer/Operator/BinaryOperatorSpacesFixer.php',
  537. ];
  538. $ignoreErrors[] = [
  539. 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#',
  540. 'count' => 1,
  541. 'path' => __DIR__ . '/../../src/Fixer/Operator/BinaryOperatorSpacesFixer.php',
  542. ];
  543. $ignoreErrors[] = [
  544. 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#',
  545. 'count' => 1,
  546. 'path' => __DIR__ . '/../../src/Fixer/Operator/BinaryOperatorSpacesFixer.php',
  547. ];
  548. $ignoreErrors[] = [
  549. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Operator\\\\TernaryToElvisOperatorFixer\\:\\:getAfterOperator\\(\\) should return array\\{start\\: int, end\\: int\\} but returns array\\{start\\: int\\|null, end\\?\\: int\\|null\\}\\.$#',
  550. 'count' => 1,
  551. 'path' => __DIR__ . '/../../src/Fixer/Operator/TernaryToElvisOperatorFixer.php',
  552. ];
  553. $ignoreErrors[] = [
  554. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\PhpUnit\\\\PhpUnitAttributesFixer\\:\\:createAttributeTokens\\(\\) should return list\\<PhpCsFixer\\\\Tokenizer\\\\Token\\> but returns non\\-empty\\-array\\<int\\|string, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\.$#',
  555. 'count' => 1,
  556. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitAttributesFixer.php',
  557. ];
  558. $ignoreErrors[] = [
  559. 'message' => '#^Parameter \\#1 \\$name of static method PhpCsFixer\\\\Fixer\\\\PhpUnit\\\\PhpUnitAttributesFixer\\:\\:toClassConstant\\(\\) expects class\\-string, string given\\.$#',
  560. 'count' => 5,
  561. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitAttributesFixer.php',
  562. ];
  563. $ignoreErrors[] = [
  564. 'message' => '#^Cannot call method isGivenKind\\(\\) on PhpCsFixer\\\\Tokenizer\\\\Token\\|false\\.$#',
  565. 'count' => 1,
  566. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitDedicateAssertFixer.php',
  567. ];
  568. $ignoreErrors[] = [
  569. 'message' => '#^Only booleans are allowed in an if condition, bool\\|int\\|string given\\.$#',
  570. 'count' => 1,
  571. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitDedicateAssertFixer.php',
  572. ];
  573. $ignoreErrors[] = [
  574. 'message' => '#^Parameter \\#1 \\$token of class PhpCsFixer\\\\Tokenizer\\\\Token constructor expects array\\{int, string\\}\\|string, array\\{262, int\\|string\\|true\\} given\\.$#',
  575. 'count' => 1,
  576. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitDedicateAssertFixer.php',
  577. ];
  578. $ignoreErrors[] = [
  579. 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#',
  580. 'count' => 1,
  581. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitNoExpectationAnnotationFixer.php',
  582. ];
  583. $ignoreErrors[] = [
  584. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\PhpUnit\\\\PhpUnitTestAnnotationFixer\\:\\:updateLines\\(\\) should return list\\<PhpCsFixer\\\\DocBlock\\\\Line\\> but returns array\\<int\\<0, max\\>, PhpCsFixer\\\\DocBlock\\\\Line\\>\\.$#',
  585. 'count' => 1,
  586. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitTestAnnotationFixer.php',
  587. ];
  588. $ignoreErrors[] = [
  589. 'message' => '#^Only numeric types are allowed in \\+, int\\<0, max\\>\\|false given on the left side\\.$#',
  590. 'count' => 1,
  591. 'path' => __DIR__ . '/../../src/Fixer/PhpUnit/PhpUnitTestAnnotationFixer.php',
  592. ];
  593. $ignoreErrors[] = [
  594. 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\|false given\\.$#',
  595. 'count' => 1,
  596. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/NoBlankLinesAfterPhpdocFixer.php',
  597. ];
  598. $ignoreErrors[] = [
  599. 'message' => '#^Method PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\PhpdocAlignFixer\\:\\:getMatches\\(\\) should return array\\{indent\\: string\\|null, tag\\: string\\|null, hint\\: string, var\\: string\\|null, static\\: string, desc\\?\\: string\\|null\\}\\|null but returns array\\<string\\>\\.$#',
  600. 'count' => 1,
  601. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocAlignFixer.php',
  602. ];
  603. $ignoreErrors[] = [
  604. 'message' => '#^Offset \'desc\' might not exist on array\\{indent\\: string\\|null, tag\\: null, hint\\: string, var\\: string\\|null, static\\: string, desc\\?\\: string\\|null\\}\\.$#',
  605. 'count' => 3,
  606. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocAlignFixer.php',
  607. ];
  608. $ignoreErrors[] = [
  609. 'message' => '#^Offset \'desc\' might not exist on array\\{indent\\: string\\|null, tag\\: string, hint\\: string, var\\: \'\', static\\: string, desc\\?\\: string\\|null\\}\\.$#',
  610. 'count' => 1,
  611. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocAlignFixer.php',
  612. ];
  613. $ignoreErrors[] = [
  614. 'message' => '#^Offset \'desc\' might not exist on array\\{indent\\: string\\|null, tag\\: string, hint\\: string, var\\: non\\-empty\\-string\\|null, static\\: string, desc\\?\\: string\\|null\\}\\.$#',
  615. 'count' => 1,
  616. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocAlignFixer.php',
  617. ];
  618. $ignoreErrors[] = [
  619. 'message' => '#^Only booleans are allowed in an if condition, int\\|false given\\.$#',
  620. 'count' => 2,
  621. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocAlignFixer.php',
  622. ];
  623. $ignoreErrors[] = [
  624. 'message' => '#^Cannot call method getEnd\\(\\) on PhpCsFixer\\\\DocBlock\\\\Annotation\\|false\\.$#',
  625. 'count' => 1,
  626. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocParamOrderFixer.php',
  627. ];
  628. $ignoreErrors[] = [
  629. 'message' => '#^Cannot call method getStart\\(\\) on PhpCsFixer\\\\DocBlock\\\\Annotation\\|false\\.$#',
  630. 'count' => 1,
  631. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocParamOrderFixer.php',
  632. ];
  633. $ignoreErrors[] = [
  634. 'message' => '#^Parameter \\#1 \\$content of method PhpCsFixer\\\\DocBlock\\\\Line\\:\\:setContent\\(\\) expects string, string\\|false given\\.$#',
  635. 'count' => 1,
  636. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocParamOrderFixer.php',
  637. ];
  638. $ignoreErrors[] = [
  639. 'message' => '#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(int\\|string\\)\\: mixed\\)\\|null, Closure\\(string\\)\\: string given\\.$#',
  640. 'count' => 1,
  641. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocTagTypeFixer.php',
  642. ];
  643. $ignoreErrors[] = [
  644. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\Phpdoc\\\\PhpdocToCommentFixer\\:\\:\\$ignoredTags \\(list\\<string\\>\\) does not accept array\\<string\\>\\.$#',
  645. 'count' => 1,
  646. 'path' => __DIR__ . '/../../src/Fixer/Phpdoc/PhpdocToCommentFixer.php',
  647. ];
  648. $ignoreErrors[] = [
  649. 'message' => '#^Only booleans are allowed in a ternary operator condition, int\\|false given\\.$#',
  650. 'count' => 1,
  651. 'path' => __DIR__ . '/../../src/Fixer/Semicolon/MultilineWhitespaceBeforeSemicolonsFixer.php',
  652. ];
  653. $ignoreErrors[] = [
  654. 'message' => '#^Parameter \\#1 \\$str of function preg_quote expects string, int\\|string given\\.$#',
  655. 'count' => 1,
  656. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/ArrayIndentationFixer.php',
  657. ];
  658. $ignoreErrors[] = [
  659. 'message' => '#^Parameter \\#3 \\$parentScopeEndIndex of method PhpCsFixer\\\\Fixer\\\\Whitespace\\\\ArrayIndentationFixer\\:\\:findExpressionEndIndex\\(\\) expects int, int\\|string given\\.$#',
  660. 'count' => 1,
  661. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/ArrayIndentationFixer.php',
  662. ];
  663. $ignoreErrors[] = [
  664. 'message' => '#^Property PhpCsFixer\\\\Fixer\\\\Whitespace\\\\BlankLineBeforeStatementFixer\\:\\:\\$fixTokenMap \\(list\\<int\\>\\) does not accept non\\-empty\\-array\\<int\\|string, int\\>\\.$#',
  665. 'count' => 1,
  666. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/BlankLineBeforeStatementFixer.php',
  667. ];
  668. $ignoreErrors[] = [
  669. 'message' => '#^Offset \'new_indent\' might not exist on array\\{type\\: \'statement\', skip\\: bool, end_index\\: int\\|null, end_index_inclusive\\: bool, initial_indent\\: string, new_indent\\?\\: string, is_indented_block\\: bool\\}\\.$#',
  670. 'count' => 1,
  671. 'path' => __DIR__ . '/../../src/Fixer/Whitespace/StatementIndentationFixer.php',
  672. ];
  673. $ignoreErrors[] = [
  674. 'message' => '#^Parameter \\#1 \\$fixerConflicts of method PhpCsFixer\\\\FixerFactory\\:\\:generateConflictMessage\\(\\) expects array\\<string, list\\<string\\>\\>, non\\-empty\\-array\\<string, non\\-empty\\-array\\<int\\<0, max\\>, string\\>\\> given\\.$#',
  675. 'count' => 1,
  676. 'path' => __DIR__ . '/../../src/FixerFactory.php',
  677. ];
  678. $ignoreErrors[] = [
  679. 'message' => '#^Parameter \\#1 \\$names of static method PhpCsFixer\\\\Utils\\:\\:naturalLanguageJoin\\(\\) expects list\\<string\\>, non\\-empty\\-array\\<int\\<0, max\\>, string\\> given\\.$#',
  680. 'count' => 1,
  681. 'path' => __DIR__ . '/../../src/FixerFactory.php',
  682. ];
  683. $ignoreErrors[] = [
  684. 'message' => '#^Parameter \\#1 \\$string of function md5 expects string, string\\|false given\\.$#',
  685. 'count' => 1,
  686. 'path' => __DIR__ . '/../../src/Linter/CachingLinter.php',
  687. ];
  688. $ignoreErrors[] = [
  689. 'message' => '#^Parameter \\#1 \\$filename of function file_put_contents expects string, string\\|false given\\.$#',
  690. 'count' => 1,
  691. 'path' => __DIR__ . '/../../src/Linter/ProcessLinter.php',
  692. ];
  693. $ignoreErrors[] = [
  694. 'message' => '#^Parameter \\#1 \\$path of method PhpCsFixer\\\\FileRemoval\\:\\:observe\\(\\) expects string, string\\|false given\\.$#',
  695. 'count' => 1,
  696. 'path' => __DIR__ . '/../../src/Linter/ProcessLinter.php',
  697. ];
  698. $ignoreErrors[] = [
  699. 'message' => '#^Parameter \\#1 \\$path of method PhpCsFixer\\\\Linter\\\\ProcessLinter\\:\\:createProcessForFile\\(\\) expects string, string\\|false given\\.$#',
  700. 'count' => 1,
  701. 'path' => __DIR__ . '/../../src/Linter/ProcessLinter.php',
  702. ];
  703. $ignoreErrors[] = [
  704. 'message' => '#^Parameter \\#4 \\$path of class Symfony\\\\Component\\\\Filesystem\\\\Exception\\\\IOException constructor expects string\\|null, string\\|false given\\.$#',
  705. 'count' => 1,
  706. 'path' => __DIR__ . '/../../src/Linter/ProcessLinter.php',
  707. ];
  708. $ignoreErrors[] = [
  709. 'message' => '#^Property PhpCsFixer\\\\Linter\\\\ProcessLinter\\:\\:\\$temporaryFile \\(string\\|null\\) does not accept string\\|false\\.$#',
  710. 'count' => 1,
  711. 'path' => __DIR__ . '/../../src/Linter/ProcessLinter.php',
  712. ];
  713. $ignoreErrors[] = [
  714. 'message' => '#^Method PhpCsFixer\\\\Preg\\:\\:replace\\(\\) should return string but returns array\\<int, string\\>\\|string\\.$#',
  715. 'count' => 2,
  716. 'path' => __DIR__ . '/../../src/Preg.php',
  717. ];
  718. $ignoreErrors[] = [
  719. 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\|false given\\.$#',
  720. 'count' => 1,
  721. 'path' => __DIR__ . '/../../src/Preg.php',
  722. ];
  723. $ignoreErrors[] = [
  724. 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#',
  725. 'count' => 1,
  726. 'path' => __DIR__ . '/../../src/Preg.php',
  727. ];
  728. $ignoreErrors[] = [
  729. 'message' => '#^Only numeric types are allowed in \\+, int\\|false given on the right side\\.$#',
  730. 'count' => 1,
  731. 'path' => __DIR__ . '/../../src/RuleSet/AbstractRuleSetDescription.php',
  732. ];
  733. $ignoreErrors[] = [
  734. 'message' => '#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, array\\<string, mixed\\>\\|bool given\\.$#',
  735. 'count' => 1,
  736. 'path' => __DIR__ . '/../../src/RuleSet/RuleSet.php',
  737. ];
  738. $ignoreErrors[] = [
  739. 'message' => '#^Call to an undefined method object\\:\\:getName\\(\\)\\.$#',
  740. 'count' => 1,
  741. 'path' => __DIR__ . '/../../src/RuleSet/RuleSets.php',
  742. ];
  743. $ignoreErrors[] = [
  744. 'message' => '#^Method PhpCsFixer\\\\RuleSet\\\\RuleSets\\:\\:getSetDefinitions\\(\\) should return array\\<string, PhpCsFixer\\\\RuleSet\\\\RuleSetDescriptionInterface\\> but returns array\\<int\\|string, object\\>\\.$#',
  745. 'count' => 1,
  746. 'path' => __DIR__ . '/../../src/RuleSet/RuleSets.php',
  747. ];
  748. $ignoreErrors[] = [
  749. 'message' => '#^Parameter \\#2 \\$callback of function uksort expects callable\\(int\\|string, int\\|string\\)\\: int, Closure\\(string, string\\)\\: int\\<\\-1, 1\\> given\\.$#',
  750. 'count' => 1,
  751. 'path' => __DIR__ . '/../../src/RuleSet/RuleSets.php',
  752. ];
  753. $ignoreErrors[] = [
  754. 'message' => '#^Static property PhpCsFixer\\\\RuleSet\\\\RuleSets\\:\\:\\$setDefinitions \\(array\\<string, PhpCsFixer\\\\RuleSet\\\\RuleSetDescriptionInterface\\>\\) does not accept array\\<int\\|string, object\\>\\.$#',
  755. 'count' => 1,
  756. 'path' => __DIR__ . '/../../src/RuleSet/RuleSets.php',
  757. ];
  758. $ignoreErrors[] = [
  759. 'message' => '#^Method PhpCsFixer\\\\Tokenizer\\\\Analyzer\\\\AttributeAnalyzer\\:\\:collectAttributes\\(\\) should return list\\<array\\{start\\: int, end\\: int, name\\: string\\}\\> but returns non\\-empty\\-array\\<int\\<0, max\\>, array\\{start\\: int, end\\: int, name\\: string\\}\\>\\.$#',
  760. 'count' => 1,
  761. 'path' => __DIR__ . '/../../src/Tokenizer/Analyzer/AttributeAnalyzer.php',
  762. ];
  763. $ignoreErrors[] = [
  764. 'message' => '#^Parameter \\#1 \\$analysis of static method PhpCsFixer\\\\Tokenizer\\\\Analyzer\\\\ControlCaseStructuresAnalyzer\\:\\:buildControlCaseStructureAnalysis\\(\\) expects array\\{kind\\: int, index\\: int, open\\: int, end\\: int, cases\\: list\\<array\\{index\\: int, open\\: int\\}\\>, default\\: array\\{index\\: int, open\\: int\\}\\|null\\}, non\\-empty\\-array\\<literal\\-string&non\\-falsy\\-string, mixed\\> given\\.$#',
  765. 'count' => 2,
  766. 'path' => __DIR__ . '/../../src/Tokenizer/Analyzer/ControlCaseStructuresAnalyzer.php',
  767. ];
  768. $ignoreErrors[] = [
  769. 'message' => '#^Method PhpCsFixer\\\\Tokenizer\\\\Token\\:\\:getContent\\(\\) should return non\\-empty\\-string but returns string\\.$#',
  770. 'count' => 1,
  771. 'path' => __DIR__ . '/../../src/Tokenizer/Token.php',
  772. ];
  773. $ignoreErrors[] = [
  774. 'message' => '#^Method PhpCsFixer\\\\Tokenizer\\\\Token\\:\\:toJson\\(\\) should return string but returns string\\|false\\.$#',
  775. 'count' => 1,
  776. 'path' => __DIR__ . '/../../src/Tokenizer/Token.php',
  777. ];
  778. $ignoreErrors[] = [
  779. 'message' => '#^Method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:extractTokenKind\\(\\) should return int\\|non\\-empty\\-string but returns int\\|string\\|null\\.$#',
  780. 'count' => 1,
  781. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  782. ];
  783. $ignoreErrors[] = [
  784. 'message' => '#^Method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:findGivenKind\\(\\) should return array\\<int, array\\<int\\<0, max\\>, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|PhpCsFixer\\\\Tokenizer\\\\Token\\> but returns array\\<\'\'\\|int, array\\<int, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|PhpCsFixer\\\\Tokenizer\\\\Token\\>\\.$#',
  785. 'count' => 1,
  786. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  787. ];
  788. $ignoreErrors[] = [
  789. 'message' => '#^Method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:findOppositeBlockEdge\\(\\) should return int\\<0, max\\> but returns int\\.$#',
  790. 'count' => 3,
  791. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  792. ];
  793. $ignoreErrors[] = [
  794. 'message' => '#^Method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:findSequence\\(\\) should return non\\-empty\\-array\\<int\\<0, max\\>, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|null but returns non\\-empty\\-array\\<int, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\.$#',
  795. 'count' => 1,
  796. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  797. ];
  798. $ignoreErrors[] = [
  799. 'message' => '#^Parameter \\#1 \\$others of method PhpCsFixer\\\\Tokenizer\\\\Token\\:\\:equalsAny\\(\\) expects list\\<array\\{0\\: int, 1\\?\\: string\\}\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string\\>, non\\-empty\\-array\\<int\\<0, max\\>, array\\{int\\}\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string\\> given\\.$#',
  800. 'count' => 1,
  801. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  802. ];
  803. $ignoreErrors[] = [
  804. 'message' => '#^Parameter \\#1 \\$possibleKind of method PhpCsFixer\\\\Tokenizer\\\\Token\\:\\:isGivenKind\\(\\) expects list\\<int\\>\\|int, non\\-empty\\-array\\<int\\<0, max\\>, int\\> given\\.$#',
  805. 'count' => 1,
  806. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  807. ];
  808. $ignoreErrors[] = [
  809. 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, iterable\\<int, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|PhpCsFixer\\\\Tokenizer\\\\Tokens given\\.$#',
  810. 'count' => 1,
  811. 'path' => __DIR__ . '/../../src/Tokenizer/Tokens.php',
  812. ];
  813. $ignoreErrors[] = [
  814. 'message' => '#^Parameter \\#1 \\$name of static method PhpCsFixer\\\\Tokenizer\\\\Processor\\\\ImportProcessor\\:\\:tokenizeName\\(\\) expects class\\-string, string given\\.$#',
  815. 'count' => 2,
  816. 'path' => __DIR__ . '/../../src/Tokenizer/Transformer/NameQualifiedTransformer.php',
  817. ];
  818. $ignoreErrors[] = [
  819. 'message' => '#^Generator expects value type PhpCsFixer\\\\Tokenizer\\\\TransformerInterface, object given\\.$#',
  820. 'count' => 1,
  821. 'path' => __DIR__ . '/../../src/Tokenizer/Transformers.php',
  822. ];
  823. $ignoreErrors[] = [
  824. 'message' => '#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#',
  825. 'count' => 1,
  826. 'path' => __DIR__ . '/../../src/ToolInfo.php',
  827. ];
  828. $ignoreErrors[] = [
  829. 'message' => '#^Method PhpCsFixer\\\\Tests\\\\AutoReview\\\\CiConfigurationTest\\:\\:getPhpVersionsUsedForBuildingLocalImages\\(\\) should return list\\<numeric\\-string\\> but returns array\\.$#',
  830. 'count' => 1,
  831. 'path' => __DIR__ . '/../../tests/AutoReview/CiConfigurationTest.php',
  832. ];
  833. $ignoreErrors[] = [
  834. 'message' => '#^Method PhpCsFixer\\\\Tests\\\\AutoReview\\\\CiConfigurationTest\\:\\:getPhpVersionsUsedForBuildingOfficialImages\\(\\) should return list\\<numeric\\-string\\> but returns array\\.$#',
  835. 'count' => 1,
  836. 'path' => __DIR__ . '/../../tests/AutoReview/CiConfigurationTest.php',
  837. ];
  838. $ignoreErrors[] = [
  839. 'message' => '#^Parameter \\#1 \\$code of static method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:fromCode\\(\\) expects string, string\\|false given\\.$#',
  840. 'count' => 2,
  841. 'path' => __DIR__ . '/../../tests/AutoReview/CiConfigurationTest.php',
  842. ];
  843. $ignoreErrors[] = [
  844. 'message' => '#^Parameter \\#1 \\$input of static method Symfony\\\\Component\\\\Yaml\\\\Yaml\\:\\:parse\\(\\) expects string, string\\|false given\\.$#',
  845. 'count' => 5,
  846. 'path' => __DIR__ . '/../../tests/AutoReview/CiConfigurationTest.php',
  847. ];
  848. $ignoreErrors[] = [
  849. 'message' => '#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#',
  850. 'count' => 1,
  851. 'path' => __DIR__ . '/../../tests/AutoReview/ComposerFileTest.php',
  852. ];
  853. $ignoreErrors[] = [
  854. 'message' => '#^Parameter \\#2 \\$callback of function array_reduce expects callable\\(array, int\\|string\\)\\: array, Closure\\(array, string\\)\\: array given\\.$#',
  855. 'count' => 1,
  856. 'path' => __DIR__ . '/../../tests/AutoReview/ComposerFileTest.php',
  857. ];
  858. $ignoreErrors[] = [
  859. 'message' => '#^Parameter \\#1 \\$filename of function file_get_contents expects string, string\\|false given\\.$#',
  860. 'count' => 1,
  861. 'path' => __DIR__ . '/../../tests/AutoReview/DocumentationTest.php',
  862. ];
  863. $ignoreErrors[] = [
  864. 'message' => '#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#',
  865. 'count' => 1,
  866. 'path' => __DIR__ . '/../../tests/AutoReview/DocumentationTest.php',
  867. ];
  868. $ignoreErrors[] = [
  869. 'message' => '#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, string\\|false given\\.$#',
  870. 'count' => 1,
  871. 'path' => __DIR__ . '/../../tests/AutoReview/DocumentationTest.php',
  872. ];
  873. $ignoreErrors[] = [
  874. 'message' => '#^Parameter \\#2 \\$subject of function preg_match expects string, string\\|false given\\.$#',
  875. 'count' => 1,
  876. 'path' => __DIR__ . '/../../tests/AutoReview/DocumentationTest.php',
  877. ];
  878. $ignoreErrors[] = [
  879. 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#',
  880. 'count' => 1,
  881. 'path' => __DIR__ . '/../../tests/AutoReview/DocumentationTest.php',
  882. ];
  883. $ignoreErrors[] = [
  884. 'message' => '#^Cannot access offset \'reflection\' on array\\{reflection\\: ReflectionObject, short_classname\\: string\\}\\|PhpCsFixer\\\\Fixer\\\\FixerInterface\\.$#',
  885. 'count' => 1,
  886. 'path' => __DIR__ . '/../../tests/AutoReview/FixerFactoryTest.php',
  887. ];
  888. $ignoreErrors[] = [
  889. 'message' => '#^Cannot access offset \'short_classname\' on array\\{reflection\\: ReflectionObject, short_classname\\: string\\}\\|PhpCsFixer\\\\Fixer\\\\FixerInterface\\.$#',
  890. 'count' => 3,
  891. 'path' => __DIR__ . '/../../tests/AutoReview/FixerFactoryTest.php',
  892. ];
  893. $ignoreErrors[] = [
  894. 'message' => '#^Parameter \\#1 \\$file of class Symfony\\\\Component\\\\Finder\\\\SplFileInfo constructor expects string, string\\|false given\\.$#',
  895. 'count' => 1,
  896. 'path' => __DIR__ . '/../../tests/AutoReview/FixerFactoryTest.php',
  897. ];
  898. $ignoreErrors[] = [
  899. 'message' => '#^Cannot access property \\$file on SimpleXMLElement\\|false\\.$#',
  900. 'count' => 1,
  901. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  902. ];
  903. $ignoreErrors[] = [
  904. 'message' => '#^Cannot call method xpath\\(\\) on SimpleXMLElement\\|false\\.$#',
  905. 'count' => 1,
  906. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  907. ];
  908. $ignoreErrors[] = [
  909. 'message' => '#^Method PhpCsFixer\\\\Tests\\\\AutoReview\\\\ProjectCodeTest\\:\\:extractFunctionNamesCalledInClass\\(\\) should return list\\<string\\> but returns array\\<int, non\\-empty\\-string\\>\\.$#',
  910. 'count' => 1,
  911. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  912. ];
  913. $ignoreErrors[] = [
  914. 'message' => '#^Method PhpCsFixer\\\\Tests\\\\AutoReview\\\\ProjectCodeTest\\:\\:getFileContentForClass\\(\\) should return string but returns string\\|false\\.$#',
  915. 'count' => 1,
  916. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  917. ];
  918. $ignoreErrors[] = [
  919. 'message' => '#^Method PhpCsFixer\\\\Tests\\\\AutoReview\\\\ProjectCodeTest\\:\\:getSrcClasses\\(\\) should return list\\<class\\-string\\> but returns list\\<non\\-falsy\\-string\\>\\.$#',
  920. 'count' => 1,
  921. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  922. ];
  923. $ignoreErrors[] = [
  924. 'message' => '#^Method PhpCsFixer\\\\Tests\\\\AutoReview\\\\ProjectCodeTest\\:\\:getTestClasses\\(\\) should return list\\<class\\-string\\<PhpCsFixer\\\\Tests\\\\TestCase\\>\\> but returns list\\<non\\-falsy\\-string\\>\\.$#',
  925. 'count' => 1,
  926. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  927. ];
  928. $ignoreErrors[] = [
  929. 'message' => '#^Only booleans are allowed in &&, int\\<0, max\\>\\|false given on the right side\\.$#',
  930. 'count' => 1,
  931. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  932. ];
  933. $ignoreErrors[] = [
  934. 'message' => '#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(PhpCsFixer\\\\Tokenizer\\\\Token\\|null\\)\\: mixed\\)\\|null, Closure\\(PhpCsFixer\\\\Tokenizer\\\\Token\\)\\: non\\-empty\\-string given\\.$#',
  935. 'count' => 1,
  936. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  937. ];
  938. $ignoreErrors[] = [
  939. 'message' => '#^Parameter \\#1 \\$className of method PhpCsFixer\\\\Tests\\\\AutoReview\\\\ProjectCodeTest\\:\\:createTokensForClass\\(\\) expects class\\-string, string given\\.$#',
  940. 'count' => 4,
  941. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  942. ];
  943. $ignoreErrors[] = [
  944. 'message' => '#^Parameter \\#1 \\$content of class PhpCsFixer\\\\DocBlock\\\\DocBlock constructor expects string, string\\|false given\\.$#',
  945. 'count' => 1,
  946. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  947. ];
  948. $ignoreErrors[] = [
  949. 'message' => '#^Parameter \\#1 \\$data of function simplexml_load_string expects string, string\\|false given\\.$#',
  950. 'count' => 1,
  951. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  952. ];
  953. $ignoreErrors[] = [
  954. 'message' => '#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\<T of object\\>\\|T of object, string given\\.$#',
  955. 'count' => 11,
  956. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  957. ];
  958. $ignoreErrors[] = [
  959. 'message' => '#^Parameter \\#2 \\$callback of function array_filter expects \\(callable\\(PhpCsFixer\\\\Tokenizer\\\\Token\\|null\\)\\: bool\\)\\|null, Closure\\(PhpCsFixer\\\\Tokenizer\\\\Token\\)\\: bool given\\.$#',
  960. 'count' => 1,
  961. 'path' => __DIR__ . '/../../tests/AutoReview/ProjectCodeTest.php',
  962. ];
  963. $ignoreErrors[] = [
  964. 'message' => '#^Parameter \\#1 \\$haystack of function str_contains expects string, string\\|false given\\.$#',
  965. 'count' => 1,
  966. 'path' => __DIR__ . '/../../tests/AutoReview/ReadmeTest.php',
  967. ];
  968. $ignoreErrors[] = [
  969. 'message' => '#^Parameter \\#3 \\$cwd of class PhpCsFixer\\\\Console\\\\ConfigurationResolver constructor expects string, string\\|false given\\.$#',
  970. 'count' => 3,
  971. 'path' => __DIR__ . '/../../tests/ConfigTest.php',
  972. ];
  973. $ignoreErrors[] = [
  974. 'message' => '#^Parameter \\#1 \\$filename of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFileExists\\(\\) expects string, string\\|false given\\.$#',
  975. 'count' => 1,
  976. 'path' => __DIR__ . '/../../tests/Console/Command/ListFilesCommandTest.php',
  977. ];
  978. $ignoreErrors[] = [
  979. 'message' => '#^Parameter \\#1 \\$path of static method Symfony\\\\Component\\\\Filesystem\\\\Path\\:\\:makeRelative\\(\\) expects string, string\\|false given\\.$#',
  980. 'count' => 1,
  981. 'path' => __DIR__ . '/../../tests/Console/Command/ListFilesCommandTest.php',
  982. ];
  983. $ignoreErrors[] = [
  984. 'message' => '#^Parameter \\#1 \\$string of function ltrim expects string, string\\|false given\\.$#',
  985. 'count' => 1,
  986. 'path' => __DIR__ . '/../../tests/Console/Command/ListFilesCommandTest.php',
  987. ];
  988. $ignoreErrors[] = [
  989. 'message' => '#^Parameter \\#2 \\$basePath of static method Symfony\\\\Component\\\\Filesystem\\\\Path\\:\\:makeRelative\\(\\) expects string, string\\|false given\\.$#',
  990. 'count' => 1,
  991. 'path' => __DIR__ . '/../../tests/Console/Command/ListFilesCommandTest.php',
  992. ];
  993. $ignoreErrors[] = [
  994. 'message' => '#^Anonymous function should return string but returns string\\|false\\.$#',
  995. 'count' => 1,
  996. 'path' => __DIR__ . '/../../tests/Console/ConfigurationResolverTest.php',
  997. ];
  998. $ignoreErrors[] = [
  999. 'message' => '#^Parameter \\#1 \\$array of function sort expects TArray of array\\<string\\>, array\\<int, string\\>\\|Exception given\\.$#',
  1000. 'count' => 1,
  1001. 'path' => __DIR__ . '/../../tests/Console/ConfigurationResolverTest.php',
  1002. ];
  1003. $ignoreErrors[] = [
  1004. 'message' => '#^Parameter \\#1 \\$expected of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) expects class\\-string\\<object\\>, string given\\.$#',
  1005. 'count' => 2,
  1006. 'path' => __DIR__ . '/../../tests/Console/ConfigurationResolverTest.php',
  1007. ];
  1008. $ignoreErrors[] = [
  1009. 'message' => '#^Parameter \\#1 \\$stream of class Symfony\\\\Component\\\\Console\\\\Output\\\\StreamOutput constructor expects resource, resource\\|false given\\.$#',
  1010. 'count' => 1,
  1011. 'path' => __DIR__ . '/../../tests/Console/Output/ErrorOutputTest.php',
  1012. ];
  1013. $ignoreErrors[] = [
  1014. 'message' => '#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, string\\|false given\\.$#',
  1015. 'count' => 1,
  1016. 'path' => __DIR__ . '/../../tests/Console/Output/ErrorOutputTest.php',
  1017. ];
  1018. $ignoreErrors[] = [
  1019. 'message' => '#^Parameter \\#1 \\$expected of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) expects class\\-string\\<object\\>, string given\\.$#',
  1020. 'count' => 1,
  1021. 'path' => __DIR__ . '/../../tests/Console/Output/Progress/ProgressOutputFactoryTest.php',
  1022. ];
  1023. $ignoreErrors[] = [
  1024. 'message' => '#^Method PhpCsFixer\\\\Tests\\\\Fixer\\\\Basic\\\\EncodingFixerTest\\:\\:prepareTestCase\\(\\) should return array\\{string, string\\|null, SplFileInfo\\} but returns array\\{string\\|false, string\\|false\\|null, SplFileInfo\\}\\.$#',
  1025. 'count' => 1,
  1026. 'path' => __DIR__ . '/../../tests/Fixer/Basic/EncodingFixerTest.php',
  1027. ];
  1028. $ignoreErrors[] = [
  1029. 'message' => '#^Parameter \\#1 \\$objectOrMethod of class ReflectionMethod constructor expects object\\|string, class\\-string\\|false given\\.$#',
  1030. 'count' => 1,
  1031. 'path' => __DIR__ . '/../../tests/Fixer/ControlStructure/NoUselessElseFixerTest.php',
  1032. ];
  1033. $ignoreErrors[] = [
  1034. 'message' => '#^Only booleans are allowed in an elseif condition, int\\|false given\\.$#',
  1035. 'count' => 1,
  1036. 'path' => __DIR__ . '/../../tests/Fixer/FunctionNotation/MethodArgumentSpaceFixerTest.php',
  1037. ];
  1038. $ignoreErrors[] = [
  1039. 'message' => '#^Parameter \\#1 \\$exception of method PHPUnit\\\\Framework\\\\TestCase\\:\\:expectException\\(\\) expects class\\-string\\<Throwable\\>, string given\\.$#',
  1040. 'count' => 1,
  1041. 'path' => __DIR__ . '/../../tests/Fixer/FunctionNotation/NativeFunctionInvocationFixerTest.php',
  1042. ];
  1043. $ignoreErrors[] = [
  1044. 'message' => '#^Generator expects value type array\\{0\\: string, 1\\: string\\|null, 2\\?\\: array\\<string, bool\\>\\}, array\\{0\\: string, 1\\?\\: string\\} given\\.$#',
  1045. 'count' => 1,
  1046. 'path' => __DIR__ . '/../../tests/Fixer/FunctionNotation/NullableTypeDeclarationForDefaultNullValueFixerTest.php',
  1047. ];
  1048. $ignoreErrors[] = [
  1049. 'message' => '#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#',
  1050. 'count' => 1,
  1051. 'path' => __DIR__ . '/../../tests/Fixer/PhpTag/NoClosingTagFixerTest.php',
  1052. ];
  1053. $ignoreErrors[] = [
  1054. 'message' => '#^Generator expects value type array\\{0\\: string, 1\\?\\: string\\}, list\\<string\\> given\\.$#',
  1055. 'count' => 5,
  1056. 'path' => __DIR__ . '/../../tests/Fixer/PhpUnit/PhpUnitDataProviderReturnTypeFixerTest.php',
  1057. ];
  1058. $ignoreErrors[] = [
  1059. 'message' => '#^Generator expects value type array\\{string, string\\}, list\\<string\\> given\\.$#',
  1060. 'count' => 2,
  1061. 'path' => __DIR__ . '/../../tests/Fixer/PhpUnit/PhpUnitDataProviderReturnTypeFixerTest.php',
  1062. ];
  1063. $ignoreErrors[] = [
  1064. 'message' => '#^Method PhpCsFixer\\\\Tests\\\\Fixer\\\\PhpUnit\\\\PhpUnitDataProviderReturnTypeFixerTest\\:\\:mapToTemplate\\(\\) should return list\\<string\\> but returns array\\<int\\|string, string\\>\\.$#',
  1065. 'count' => 1,
  1066. 'path' => __DIR__ . '/../../tests/Fixer/PhpUnit/PhpUnitDataProviderReturnTypeFixerTest.php',
  1067. ];
  1068. $ignoreErrors[] = [
  1069. 'message' => '#^Parameter \\#1 \\$exception of method PHPUnit\\\\Framework\\\\TestCase\\:\\:expectException\\(\\) expects class\\-string\\<Throwable\\>, string given\\.$#',
  1070. 'count' => 1,
  1071. 'path' => __DIR__ . '/../../tests/Fixer/PhpUnit/PhpUnitTargetVersionTest.php',
  1072. ];
  1073. $ignoreErrors[] = [
  1074. 'message' => '#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#',
  1075. 'count' => 1,
  1076. 'path' => __DIR__ . '/../../tests/Fixer/Semicolon/NoEmptyStatementFixerTest.php',
  1077. ];
  1078. $ignoreErrors[] = [
  1079. 'message' => '#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#',
  1080. 'count' => 1,
  1081. 'path' => __DIR__ . '/../../tests/Fixer/Semicolon/SemicolonAfterInstructionFixerTest.php',
  1082. ];
  1083. $ignoreErrors[] = [
  1084. 'message' => '#^Parameter \\#2 \\$array of function array_map expects array, iterable given\\.$#',
  1085. 'count' => 1,
  1086. 'path' => __DIR__ . '/../../tests/Fixer/Whitespace/LineEndingFixerTest.php',
  1087. ];
  1088. $ignoreErrors[] = [
  1089. 'message' => '#^Parameter \\#1 \\$code of class PhpCsFixer\\\\FixerDefinition\\\\FileSpecificCodeSample constructor expects string, string\\|false given\\.$#',
  1090. 'count' => 2,
  1091. 'path' => __DIR__ . '/../../tests/FixerDefinition/FileSpecificCodeSampleTest.php',
  1092. ];
  1093. $ignoreErrors[] = [
  1094. 'message' => '#^Parameter \\#1 \\$minimum of class PhpCsFixer\\\\FixerDefinition\\\\VersionSpecification constructor expects int\\<1, max\\>\\|null, int\\|null given\\.$#',
  1095. 'count' => 3,
  1096. 'path' => __DIR__ . '/../../tests/FixerDefinition/VersionSpecificationTest.php',
  1097. ];
  1098. $ignoreErrors[] = [
  1099. 'message' => '#^Parameter \\#2 \\$maximum of class PhpCsFixer\\\\FixerDefinition\\\\VersionSpecification constructor expects int\\<1, max\\>\\|null, int\\|null given\\.$#',
  1100. 'count' => 3,
  1101. 'path' => __DIR__ . '/../../tests/FixerDefinition/VersionSpecificationTest.php',
  1102. ];
  1103. $ignoreErrors[] = [
  1104. 'message' => '#^Method class@anonymous/tests/FixerFactoryTest\\.php\\:223\\:\\:getRuleConfiguration\\(\\) should return array\\<string, mixed\\> but returns array\\<string, mixed\\>\\|true\\.$#',
  1105. 'count' => 1,
  1106. 'path' => __DIR__ . '/../../tests/FixerFactoryTest.php',
  1107. ];
  1108. $ignoreErrors[] = [
  1109. 'message' => '#^Method class@anonymous/tests/FixerFactoryTest\\.php\\:58\\:\\:getRules\\(\\) should return array\\<string, array\\<string, mixed\\>\\|true\\> but returns array\\<string, array\\<string, mixed\\>\\|bool\\>\\.$#',
  1110. 'count' => 1,
  1111. 'path' => __DIR__ . '/../../tests/FixerFactoryTest.php',
  1112. ];
  1113. $ignoreErrors[] = [
  1114. 'message' => '#^Parameter \\#1 \\$exception of method PHPUnit\\\\Framework\\\\TestCase\\:\\:expectException\\(\\) expects class\\-string\\<Throwable\\>, string given\\.$#',
  1115. 'count' => 2,
  1116. 'path' => __DIR__ . '/../../tests/PregTest.php',
  1117. ];
  1118. $ignoreErrors[] = [
  1119. 'message' => '#^Parameter \\#1 \\$pattern of static method PhpCsFixer\\\\Preg\\:\\:replace\\(\\) expects string, array\\<int, string\\>\\|string given\\.$#',
  1120. 'count' => 1,
  1121. 'path' => __DIR__ . '/../../tests/PregTest.php',
  1122. ];
  1123. $ignoreErrors[] = [
  1124. 'message' => '#^Parameter \\#1 \\$pattern of static method PhpCsFixer\\\\Preg\\:\\:replaceCallback\\(\\) expects string, array\\<int, string\\>\\|string given\\.$#',
  1125. 'count' => 1,
  1126. 'path' => __DIR__ . '/../../tests/PregTest.php',
  1127. ];
  1128. $ignoreErrors[] = [
  1129. 'message' => '#^Parameter \\#3 \\$subject of static method PhpCsFixer\\\\Preg\\:\\:replaceCallback\\(\\) expects string, array\\<int, string\\>\\|string given\\.$#',
  1130. 'count' => 1,
  1131. 'path' => __DIR__ . '/../../tests/PregTest.php',
  1132. ];
  1133. $ignoreErrors[] = [
  1134. 'message' => '#^Parameter \\#2 \\$string of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringStartsWith\\(\\) expects string, string\\|false given\\.$#',
  1135. 'count' => 1,
  1136. 'path' => __DIR__ . '/../../tests/RuleSet/RuleSetsTest.php',
  1137. ];
  1138. $ignoreErrors[] = [
  1139. 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#',
  1140. 'count' => 1,
  1141. 'path' => __DIR__ . '/../../tests/Smoke/CiIntegrationTest.php',
  1142. ];
  1143. $ignoreErrors[] = [
  1144. 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#',
  1145. 'count' => 1,
  1146. 'path' => __DIR__ . '/../../tests/Smoke/CiIntegrationTest.php',
  1147. ];
  1148. $ignoreErrors[] = [
  1149. 'message' => '#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, string\\|false given\\.$#',
  1150. 'count' => 1,
  1151. 'path' => __DIR__ . '/../../tests/Smoke/CiIntegrationTest.php',
  1152. ];
  1153. $ignoreErrors[] = [
  1154. 'message' => '#^Parameter \\#1 \\$dirs of method Symfony\\\\Component\\\\Filesystem\\\\Filesystem\\:\\:mkdir\\(\\) expects iterable\\|string, string\\|false given\\.$#',
  1155. 'count' => 1,
  1156. 'path' => __DIR__ . '/../../tests/Smoke/InstallViaComposerTest.php',
  1157. ];
  1158. $ignoreErrors[] = [
  1159. 'message' => '#^Parameter \\#1 \\$filename of function unlink expects string, string\\|false given\\.$#',
  1160. 'count' => 1,
  1161. 'path' => __DIR__ . '/../../tests/Smoke/InstallViaComposerTest.php',
  1162. ];
  1163. $ignoreErrors[] = [
  1164. 'message' => '#^Parameter \\#1 \\$files of method Symfony\\\\Component\\\\Filesystem\\\\Filesystem\\:\\:remove\\(\\) expects iterable\\|string, string\\|false given\\.$#',
  1165. 'count' => 1,
  1166. 'path' => __DIR__ . '/../../tests/Smoke/InstallViaComposerTest.php',
  1167. ];
  1168. $ignoreErrors[] = [
  1169. 'message' => '#^Parameter \\#2 \\$cwd of static method PhpCsFixer\\\\Tests\\\\Smoke\\\\InstallViaComposerTest\\:\\:assertCommandsWork\\(\\) expects string, string\\|false given\\.$#',
  1170. 'count' => 1,
  1171. 'path' => __DIR__ . '/../../tests/Smoke/InstallViaComposerTest.php',
  1172. ];
  1173. $ignoreErrors[] = [
  1174. 'message' => '#^Only booleans are allowed in a ternary operator condition, string\\|false given\\.$#',
  1175. 'count' => 1,
  1176. 'path' => __DIR__ . '/../../tests/Test/AbstractFixerTestCase.php',
  1177. ];
  1178. $ignoreErrors[] = [
  1179. 'message' => '#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(PhpCsFixer\\\\Tokenizer\\\\Token\\|null\\)\\: mixed\\)\\|null, Closure\\(PhpCsFixer\\\\Tokenizer\\\\Token\\)\\: string given\\.$#',
  1180. 'count' => 1,
  1181. 'path' => __DIR__ . '/../../tests/Test/AbstractFixerTestCase.php',
  1182. ];
  1183. $ignoreErrors[] = [
  1184. 'message' => '#^Parameter \\#1 \\$code of static method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:fromCode\\(\\) expects string, string\\|false given\\.$#',
  1185. 'count' => 1,
  1186. 'path' => __DIR__ . '/../../tests/Test/AbstractFixerTestCase.php',
  1187. ];
  1188. $ignoreErrors[] = [
  1189. 'message' => '#^Parameter \\#1 \\$sequence of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:findSequence\\(\\) expects non\\-empty\\-list\\<array\\{0\\: int, 1\\?\\: string\\}\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string\\>, list\\<array\\{0\\: int, 1\\?\\: string\\}\\> given\\.$#',
  1190. 'count' => 1,
  1191. 'path' => __DIR__ . '/../../tests/Test/AbstractFixerTestCase.php',
  1192. ];
  1193. $ignoreErrors[] = [
  1194. 'message' => '#^Method PhpCsFixer\\\\Tests\\\\Test\\\\AbstractIntegrationCaseFactory\\:\\:determineRequirements\\(\\) should return array\\{php\\: int, php\\<\\: int, os\\: list\\<string\\>\\} but returns array\\<string, mixed\\>\\.$#',
  1195. 'count' => 1,
  1196. 'path' => __DIR__ . '/../../tests/Test/AbstractIntegrationCaseFactory.php',
  1197. ];
  1198. $ignoreErrors[] = [
  1199. 'message' => '#^Method PhpCsFixer\\\\Tests\\\\Test\\\\AbstractIntegrationCaseFactory\\:\\:determineSettings\\(\\) should return array\\{checkPriority\\: bool, deprecations\\: list\\<string\\>\\} but returns array\\<string, mixed\\>\\.$#',
  1200. 'count' => 1,
  1201. 'path' => __DIR__ . '/../../tests/Test/AbstractIntegrationCaseFactory.php',
  1202. ];
  1203. $ignoreErrors[] = [
  1204. 'message' => '#^Only booleans are allowed in a negated boolean, int\\|false given\\.$#',
  1205. 'count' => 1,
  1206. 'path' => __DIR__ . '/../../tests/Test/AbstractIntegrationCaseFactory.php',
  1207. ];
  1208. $ignoreErrors[] = [
  1209. 'message' => '#^Only booleans are allowed in a ternary operator condition, string\\|false given\\.$#',
  1210. 'count' => 1,
  1211. 'path' => __DIR__ . '/../../tests/Test/AbstractIntegrationTestCase.php',
  1212. ];
  1213. $ignoreErrors[] = [
  1214. 'message' => '#^Parameter \\#1 \\$dirs of method Symfony\\\\Component\\\\Finder\\\\Finder\\:\\:in\\(\\) expects array\\<string\\>\\|string, string\\|false given\\.$#',
  1215. 'count' => 1,
  1216. 'path' => __DIR__ . '/../../tests/Test/AbstractIntegrationTestCase.php',
  1217. ];
  1218. $ignoreErrors[] = [
  1219. 'message' => '#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|false given\\.$#',
  1220. 'count' => 1,
  1221. 'path' => __DIR__ . '/../../tests/Test/AbstractIntegrationTestCase.php',
  1222. ];
  1223. $ignoreErrors[] = [
  1224. 'message' => '#^Parameter \\#1 \\$string of function strlen expects string, string\\|false given\\.$#',
  1225. 'count' => 1,
  1226. 'path' => __DIR__ . '/../../tests/Test/AbstractIntegrationTestCase.php',
  1227. ];
  1228. $ignoreErrors[] = [
  1229. 'message' => '#^Parameter \\#2 \\$fixedInputCode of static method PhpCsFixer\\\\Tests\\\\Test\\\\AbstractIntegrationTestCase\\:\\:assertRevertedOrderFixing\\(\\) expects string, string\\|false given\\.$#',
  1230. 'count' => 1,
  1231. 'path' => __DIR__ . '/../../tests/Test/AbstractIntegrationTestCase.php',
  1232. ];
  1233. $ignoreErrors[] = [
  1234. 'message' => '#^Parameter \\#3 \\$fixedInputCodeWithReversedFixers of static method PhpCsFixer\\\\Tests\\\\Test\\\\AbstractIntegrationTestCase\\:\\:assertRevertedOrderFixing\\(\\) expects string, string\\|false given\\.$#',
  1235. 'count' => 1,
  1236. 'path' => __DIR__ . '/../../tests/Test/AbstractIntegrationTestCase.php',
  1237. ];
  1238. $ignoreErrors[] = [
  1239. 'message' => '#^Parameter \\#1 \\$id of static method PhpCsFixer\\\\Tokenizer\\\\Token\\:\\:getNameForId\\(\\) expects int, int\\|string given\\.$#',
  1240. 'count' => 1,
  1241. 'path' => __DIR__ . '/../../tests/Test/AbstractTransformerTestCase.php',
  1242. ];
  1243. $ignoreErrors[] = [
  1244. 'message' => '#^Parameter \\#2 \\$prototypes of method PhpCsFixer\\\\Tests\\\\Test\\\\AbstractTransformerTestCase\\:\\:countTokenPrototypes\\(\\) expects list\\<array\\{0\\: int, 1\\?\\: string\\}\\>, array\\<int\\<0, max\\>, array\\{int\\}\\|string\\> given\\.$#',
  1245. 'count' => 1,
  1246. 'path' => __DIR__ . '/../../tests/Test/AbstractTransformerTestCase.php',
  1247. ];
  1248. $ignoreErrors[] = [
  1249. 'message' => '#^Offset 1 might not exist on array\\{0\\: string, 1\\?\\: string\\}\\.$#',
  1250. 'count' => 1,
  1251. 'path' => __DIR__ . '/../../tests/Test/TestCaseUtils.php',
  1252. ];
  1253. $ignoreErrors[] = [
  1254. 'message' => '#^Property PhpCsFixer\\\\Tests\\\\Test\\\\TokensWithObservedTransformers\\:\\:\\$observedModificationsPerTransformer \\(array\\<string, list\\<int\\|string\\>\\>\\) does not accept non\\-empty\\-array\\<int\\|string, list\\<int\\|string\\>\\>\\.$#',
  1255. 'count' => 1,
  1256. 'path' => __DIR__ . '/../../tests/Test/TokensWithObservedTransformers.php',
  1257. ];
  1258. $ignoreErrors[] = [
  1259. 'message' => '#^Property PhpCsFixer\\\\Tests\\\\TestCase\\:\\:\\$actualDeprecations \\(list\\<string\\>\\) does not accept array\\<int\\<0, max\\>, string\\>\\.$#',
  1260. 'count' => 1,
  1261. 'path' => __DIR__ . '/../../tests/TestCase.php',
  1262. ];
  1263. $ignoreErrors[] = [
  1264. 'message' => '#^Property PhpCsFixer\\\\Tests\\\\TestCase\\:\\:\\$expectedDeprecations \\(list\\<string\\>\\) does not accept array\\<int\\<0, max\\>, string\\>\\.$#',
  1265. 'count' => 1,
  1266. 'path' => __DIR__ . '/../../tests/TestCase.php',
  1267. ];
  1268. $ignoreErrors[] = [
  1269. 'message' => '#^Parameter \\#1 \\$sequence of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:findSequence\\(\\) expects non\\-empty\\-list\\<array\\{0\\: int, 1\\?\\: string\\}\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string\\>, list\\<array\\{0\\: int, 1\\?\\: string\\}\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string\\> given\\.$#',
  1270. 'count' => 1,
  1271. 'path' => __DIR__ . '/../../tests/Tokenizer/TokensTest.php',
  1272. ];
  1273. $ignoreErrors[] = [
  1274. 'message' => '#^Parameter \\#1 \\$sequence of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:findSequence\\(\\) expects non\\-empty\\-list\\<array\\{0\\: int, 1\\?\\: string\\}\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|string\\>, list\\<mixed\\> given\\.$#',
  1275. 'count' => 1,
  1276. 'path' => __DIR__ . '/../../tests/Tokenizer/TokensTest.php',
  1277. ];
  1278. $ignoreErrors[] = [
  1279. 'message' => '#^Parameter \\#1 \\$slices of method PhpCsFixer\\\\Tokenizer\\\\Tokens\\:\\:insertSlices\\(\\) expects array\\<int, list\\<PhpCsFixer\\\\Tokenizer\\\\Token\\>\\|PhpCsFixer\\\\Tokenizer\\\\Token\\|PhpCsFixer\\\\Tokenizer\\\\Tokens\\>, array\\{16\\: array\\<int, PhpCsFixer\\\\Tokenizer\\\\Token\\>, 6\\: array\\<int, PhpCsFixer\\\\Tokenizer\\\\Token\\>\\} given\\.$#',
  1280. 'count' => 1,
  1281. 'path' => __DIR__ . '/../../tests/Tokenizer/TokensTest.php',
  1282. ];
  1283. return ['parameters' => ['ignoreErrors' => $ignoreErrors]];