phpstan-baseline.neon 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. parameters:
  2. ignoreErrors:
  3. -
  4. message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|numeric\\-string, 2\\: '\\+', 3\\?\\: ''\\|numeric\\-string\\}\\.$#"
  5. count: 1
  6. path: src/PhpSpreadsheet/Calculation/Calculation.php
  7. -
  8. message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|numeric\\-string, 2\\: ',', 3\\?\\: ''\\|numeric\\-string\\}\\.$#"
  9. count: 2
  10. path: src/PhpSpreadsheet/Calculation/Calculation.php
  11. -
  12. message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|numeric\\-string, 2\\: '\\-', 3\\?\\: ''\\|numeric\\-string\\}\\.$#"
  13. count: 2
  14. path: src/PhpSpreadsheet/Calculation/Calculation.php
  15. -
  16. message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string, 3\\?\\: string, 4\\?\\: string, 5\\?\\: string, 6\\?\\: non\\-empty\\-string, 7\\?\\: numeric\\-string\\}\\.$#"
  17. count: 1
  18. path: src/PhpSpreadsheet/Calculation/Calculation.php
  19. -
  20. message: "#^Offset 3 does not exist on array\\{0\\?\\: string, 1\\: ''\\|numeric\\-string, 2\\: '\\-', 3\\?\\: ''\\|numeric\\-string\\}\\.$#"
  21. count: 1
  22. path: src/PhpSpreadsheet/Calculation/Calculation.php
  23. -
  24. message: "#^Offset 3 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|numeric\\-string, 2\\: ',', 3\\?\\: ''\\|numeric\\-string\\}\\.$#"
  25. count: 2
  26. path: src/PhpSpreadsheet/Calculation/Calculation.php
  27. -
  28. message: "#^Offset 3 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|numeric\\-string, 2\\: '\\-', 3\\?\\: ''\\|numeric\\-string\\}\\.$#"
  29. count: 1
  30. path: src/PhpSpreadsheet/Calculation/Calculation.php
  31. -
  32. message: "#^Offset 8 on array\\{string, string, string, string, string, string, non\\-empty\\-string, numeric\\-string\\} in isset\\(\\) does not exist\\.$#"
  33. count: 1
  34. path: src/PhpSpreadsheet/Calculation/Calculation.php
  35. -
  36. message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
  37. count: 1
  38. path: src/PhpSpreadsheet/Calculation/Calculation.php
  39. -
  40. message: "#^Binary operation \"%%\" between int\\|string and 100 results in an error\\.$#"
  41. count: 1
  42. path: src/PhpSpreadsheet/Calculation/DateTimeExcel/Helpers.php
  43. -
  44. message: "#^Binary operation \"%%\" between int\\|string and 4 results in an error\\.$#"
  45. count: 1
  46. path: src/PhpSpreadsheet/Calculation/DateTimeExcel/Helpers.php
  47. -
  48. message: "#^Binary operation \"%%\" between int\\|string and 400 results in an error\\.$#"
  49. count: 1
  50. path: src/PhpSpreadsheet/Calculation/DateTimeExcel/Helpers.php
  51. -
  52. message: "#^Binary operation \"%%\" between string and 24 results in an error\\.$#"
  53. count: 1
  54. path: src/PhpSpreadsheet/Calculation/DateTimeExcel/TimeValue.php
  55. -
  56. message: "#^Binary operation \"\\-\" between 1 and array\\|float\\|string results in an error\\.$#"
  57. count: 1
  58. path: src/PhpSpreadsheet/Calculation/Engineering/Erf.php
  59. -
  60. message: "#^Cannot call method getTokenSubType\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\FormulaToken\\|null\\.$#"
  61. count: 4
  62. path: src/PhpSpreadsheet/Calculation/FormulaParser.php
  63. -
  64. message: "#^Cannot call method getTokenType\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\FormulaToken\\|null\\.$#"
  65. count: 9
  66. path: src/PhpSpreadsheet/Calculation/FormulaParser.php
  67. -
  68. message: "#^Cannot call method setTokenSubType\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\FormulaToken\\|null\\.$#"
  69. count: 5
  70. path: src/PhpSpreadsheet/Calculation/FormulaParser.php
  71. -
  72. message: "#^Cannot call method setValue\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\FormulaToken\\|null\\.$#"
  73. count: 5
  74. path: src/PhpSpreadsheet/Calculation/FormulaParser.php
  75. -
  76. message: "#^Strict comparison using \\=\\=\\= between PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\FormulaToken and null will always evaluate to false\\.$#"
  77. count: 1
  78. path: src/PhpSpreadsheet/Calculation/FormulaParser.php
  79. -
  80. message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-falsy\\-string, 2\\?\\: string\\}\\.$#"
  81. count: 1
  82. path: src/PhpSpreadsheet/Calculation/Functions.php
  83. -
  84. message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-falsy\\-string, 2\\?\\: string\\}\\.$#"
  85. count: 1
  86. path: src/PhpSpreadsheet/Calculation/Functions.php
  87. -
  88. message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string, 3\\?\\: string, 4\\?\\: string, 5\\?\\: string, 6\\?\\: non\\-empty\\-string, 7\\?\\: numeric\\-string\\}\\.$#"
  89. count: 1
  90. path: src/PhpSpreadsheet/Calculation/Information/Value.php
  91. -
  92. message: "#^Offset 6 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string, 3\\?\\: string, 4\\?\\: string, 5\\?\\: string, 6\\?\\: non\\-empty\\-string, 7\\?\\: numeric\\-string\\}\\.$#"
  93. count: 1
  94. path: src/PhpSpreadsheet/Calculation/Information/Value.php
  95. -
  96. message: "#^Offset 7 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string, 3\\?\\: string, 4\\?\\: string, 5\\?\\: string, 6\\?\\: non\\-empty\\-string, 7\\?\\: numeric\\-string\\}\\.$#"
  97. count: 1
  98. path: src/PhpSpreadsheet/Calculation/Information/Value.php
  99. -
  100. message: "#^Offset 3 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string, 3\\?\\: string, 4\\?\\: string, 5\\?\\: string, 6\\?\\: non\\-empty\\-string, 7\\?\\: numeric\\-string\\}\\.$#"
  101. count: 1
  102. path: src/PhpSpreadsheet/Calculation/LookupRef/Formula.php
  103. -
  104. message: "#^Offset 6 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string, 3\\?\\: string, 4\\?\\: string, 5\\?\\: string, 6\\?\\: non\\-empty\\-string, 7\\?\\: numeric\\-string\\}\\.$#"
  105. count: 1
  106. path: src/PhpSpreadsheet/Calculation/LookupRef/Formula.php
  107. -
  108. message: "#^Offset 7 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string, 3\\?\\: string, 4\\?\\: string, 5\\?\\: string, 6\\?\\: non\\-empty\\-string, 7\\?\\: numeric\\-string\\}\\.$#"
  109. count: 1
  110. path: src/PhpSpreadsheet/Calculation/LookupRef/Formula.php
  111. -
  112. message: "#^Binary operation \"/\" between float\\|int and float\\|string results in an error\\.$#"
  113. count: 1
  114. path: src/PhpSpreadsheet/Calculation/Statistical/Deviations.php
  115. -
  116. message: "#^Binary operation \"\\-\" between 1 and array\\|float\\|string results in an error\\.$#"
  117. count: 1
  118. path: src/PhpSpreadsheet/Calculation/Statistical/Distributions/ChiSquared.php
  119. -
  120. message: "#^Binary operation \"\\-\" between 1 and array\\|float\\|string results in an error\\.$#"
  121. count: 1
  122. path: src/PhpSpreadsheet/Calculation/Statistical/Distributions/StandardNormal.php
  123. -
  124. message: "#^Offset 'col' does not exist on array\\{0\\?\\: string, col\\?\\: non\\-empty\\-string, 1\\?\\: non\\-empty\\-string, row\\?\\: non\\-empty\\-string, 2\\?\\: non\\-empty\\-string\\}\\.$#"
  125. count: 2
  126. path: src/PhpSpreadsheet/Cell/AddressHelper.php
  127. -
  128. message: "#^Offset 'row' does not exist on array\\{0\\?\\: string, col\\?\\: non\\-empty\\-string, 1\\?\\: non\\-empty\\-string, row\\?\\: non\\-empty\\-string, 2\\?\\: non\\-empty\\-string\\}\\.$#"
  129. count: 2
  130. path: src/PhpSpreadsheet/Cell/AddressHelper.php
  131. -
  132. message: "#^Parameter \\#1 \\$num of function dechex expects int, string given\\.$#"
  133. count: 1
  134. path: src/PhpSpreadsheet/Helper/Html.php
  135. -
  136. message: "#^Offset 'size' does not exist on array\\{0\\?\\: string, size\\?\\: non\\-empty\\-string, 1\\?\\: non\\-empty\\-string, unit\\?\\: non\\-falsy\\-string, 2\\?\\: non\\-falsy\\-string\\}\\.$#"
  137. count: 1
  138. path: src/PhpSpreadsheet/Helper/Size.php
  139. -
  140. message: "#^Parameter \\#2 \\$length of function fgetcsv expects int\\<0, max\\>\\|null, int\\|null given\\.$#"
  141. count: 2
  142. path: src/PhpSpreadsheet/Reader/Csv.php
  143. -
  144. message: "#^Parameter \\#1 \\$namespace of method DOMDocument\\:\\:getElementsByTagNameNS\\(\\) expects string, string\\|null given\\.$#"
  145. count: 3
  146. path: src/PhpSpreadsheet/Reader/Ods.php
  147. -
  148. message: "#^Parameter \\#1 \\$namespace of method DOMElement\\:\\:getElementsByTagNameNS\\(\\) expects string, string\\|null given\\.$#"
  149. count: 7
  150. path: src/PhpSpreadsheet/Reader/Ods.php
  151. -
  152. message: "#^Parameter \\#2 \\$tableNs of class PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods\\\\AutoFilter constructor expects string, string\\|null given\\.$#"
  153. count: 1
  154. path: src/PhpSpreadsheet/Reader/Ods.php
  155. -
  156. message: "#^Parameter \\#2 \\$tableNs of class PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods\\\\DefinedNames constructor expects string, string\\|null given\\.$#"
  157. count: 1
  158. path: src/PhpSpreadsheet/Reader/Ods.php
  159. -
  160. message: "#^Parameter \\#2 \\$tableNs of method PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods\\:\\:processMergedCells\\(\\) expects string, string\\|null given\\.$#"
  161. count: 1
  162. path: src/PhpSpreadsheet/Reader/Ods.php
  163. -
  164. message: "#^Parameter \\#3 \\$configNs of method PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods\\:\\:lookForActiveSheet\\(\\) expects string, string\\|null given\\.$#"
  165. count: 1
  166. path: src/PhpSpreadsheet/Reader/Ods.php
  167. -
  168. message: "#^Parameter \\#3 \\$configNs of method PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods\\:\\:lookForSelectedCells\\(\\) expects string, string\\|null given\\.$#"
  169. count: 1
  170. path: src/PhpSpreadsheet/Reader/Ods.php
  171. -
  172. message: "#^Property PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods\\\\PageSettings\\:\\:\\$officeNs \\(string\\) does not accept string\\|null\\.$#"
  173. count: 1
  174. path: src/PhpSpreadsheet/Reader/Ods/PageSettings.php
  175. -
  176. message: "#^Property PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods\\\\PageSettings\\:\\:\\$stylesFo \\(string\\) does not accept string\\|null\\.$#"
  177. count: 1
  178. path: src/PhpSpreadsheet/Reader/Ods/PageSettings.php
  179. -
  180. message: "#^Property PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods\\\\PageSettings\\:\\:\\$stylesNs \\(string\\) does not accept string\\|null\\.$#"
  181. count: 1
  182. path: src/PhpSpreadsheet/Reader/Ods/PageSettings.php
  183. -
  184. message: "#^Property PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Ods\\\\PageSettings\\:\\:\\$tableNs \\(string\\) does not accept string\\|null\\.$#"
  185. count: 1
  186. path: src/PhpSpreadsheet/Reader/Ods/PageSettings.php
  187. -
  188. message: "#^Parameter \\#1 \\$column of method PhpOffice\\\\PhpSpreadsheet\\\\Worksheet\\\\Worksheet\\:\\:getColumnDimension\\(\\) expects string, \\(float\\|int\\) given\\.$#"
  189. count: 1
  190. path: src/PhpSpreadsheet/Reader/Slk.php
  191. -
  192. message: "#^Offset 4 does not exist on array\\{0\\: string, 1\\: non\\-empty\\-string, 2\\: numeric\\-string, 3\\: string, 4\\?\\: string, 5\\?\\: numeric\\-string\\}\\.$#"
  193. count: 1
  194. path: src/PhpSpreadsheet/Reader/Xlsx.php
  195. -
  196. message: "#^Offset 5 does not exist on array\\{0\\: string, 1\\: non\\-empty\\-string, 2\\: numeric\\-string, 3\\: string, 4\\?\\: string, 5\\?\\: numeric\\-string\\}\\.$#"
  197. count: 1
  198. path: src/PhpSpreadsheet/Reader/Xlsx.php
  199. -
  200. message: "#^Variable \\$column in empty\\(\\) always exists and is not falsy\\.$#"
  201. count: 1
  202. path: src/PhpSpreadsheet/ReferenceHelper.php
  203. -
  204. message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-falsy\\-string, 2\\?\\: non\\-empty\\-string\\|numeric\\-string\\}\\.$#"
  205. count: 1
  206. path: src/PhpSpreadsheet/Style/NumberFormat/FractionFormatter.php
  207. -
  208. message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-falsy\\-string, 2\\?\\: non\\-empty\\-string\\|numeric\\-string\\}\\.$#"
  209. count: 1
  210. path: src/PhpSpreadsheet/Style/NumberFormat/FractionFormatter.php
  211. -
  212. message: "#^Variable \\$language on left side of \\?\\? always exists and is not nullable\\.$#"
  213. count: 1
  214. path: src/PhpSpreadsheet/Style/NumberFormat/Wizard/NumberBase.php
  215. -
  216. message: "#^Offset 'mime' on array\\{0\\: int\\<0, max\\>, 1\\: int\\<0, max\\>, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\} on left side of \\?\\? always exists and is not nullable\\.$#"
  217. count: 1
  218. path: src/PhpSpreadsheet/Worksheet/MemoryDrawing.php
  219. -
  220. message: "#^Variable \\$rgb in empty\\(\\) always exists and is not falsy\\.$#"
  221. count: 1
  222. path: src/PhpSpreadsheet/Worksheet/MemoryDrawing.php
  223. -
  224. message: "#^Parameter \\#1 \\$filename of function fopen expects string, resource\\|string given\\.$#"
  225. count: 1
  226. path: src/PhpSpreadsheet/Writer/BaseWriter.php
  227. -
  228. message: "#^Parameter \\#1 \\$url of function parse_url expects string, resource\\|string given\\.$#"
  229. count: 1
  230. path: src/PhpSpreadsheet/Writer/BaseWriter.php
  231. -
  232. message: "#^Offset 'mime' does not exist on array\\{\\}\\|array\\{0\\: int\\<0, max\\>, 1\\: int\\<0, max\\>, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\.$#"
  233. count: 1
  234. path: src/PhpSpreadsheet/Writer/Html.php
  235. -
  236. message: "#^Offset 0 does not exist on array\\{\\}\\|array\\{0\\: int\\<0, max\\>, 1\\: int\\<0, max\\>, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\.$#"
  237. count: 1
  238. path: src/PhpSpreadsheet/Writer/Html.php
  239. -
  240. message: "#^Offset 1 does not exist on array\\{\\}\\|array\\{0\\: int\\<0, max\\>, 1\\: int\\<0, max\\>, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\.$#"
  241. count: 1
  242. path: src/PhpSpreadsheet/Writer/Html.php
  243. -
  244. message: "#^Variable \\$column in empty\\(\\) always exists and is not falsy\\.$#"
  245. count: 1
  246. path: src/PhpSpreadsheet/Writer/Ods/Formula.php
  247. -
  248. message: "#^Variable \\$column in empty\\(\\) always exists and is not falsy\\.$#"
  249. count: 1
  250. path: src/PhpSpreadsheet/Writer/Ods/NamedExpressions.php
  251. -
  252. message: "#^Offset 2 on array\\{0\\: int\\<0, max\\>, 1\\: int\\<0, max\\>, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\} on left side of \\?\\? always exists and is not nullable\\.$#"
  253. count: 1
  254. path: src/PhpSpreadsheet/Writer/Xls.php
  255. -
  256. message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|'\\$', 2\\?\\: non\\-falsy\\-string, 3\\?\\: ''\\|'\\$', 4\\?\\: numeric\\-string\\}\\.$#"
  257. count: 1
  258. path: src/PhpSpreadsheet/Writer/Xls/Parser.php
  259. -
  260. message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|'\\$', 2\\?\\: numeric\\-string, 3\\?\\: ''\\|'\\$', 4\\?\\: numeric\\-string\\}\\.$#"
  261. count: 1
  262. path: src/PhpSpreadsheet/Writer/Xls/Parser.php
  263. -
  264. message: "#^Offset 4 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|'\\$', 2\\?\\: non\\-falsy\\-string, 3\\?\\: ''\\|'\\$', 4\\?\\: numeric\\-string\\}\\.$#"
  265. count: 1
  266. path: src/PhpSpreadsheet/Writer/Xls/Parser.php
  267. -
  268. message: "#^Offset 4 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|'\\$', 2\\?\\: numeric\\-string, 3\\?\\: ''\\|'\\$', 4\\?\\: numeric\\-string\\}\\.$#"
  269. count: 1
  270. path: src/PhpSpreadsheet/Writer/Xls/Parser.php
  271. -
  272. message: "#^Parameter \\#2 \\$length of function fread expects int\\<1, max\\>, int\\<0, max\\> given\\.$#"
  273. count: 1
  274. path: src/PhpSpreadsheet/Writer/Xls/Worksheet.php
  275. -
  276. message: "#^Comparison operation \"\\>\\=\" between int\\<5, 7\\> and 3 is always true\\.$#"
  277. count: 1
  278. path: src/PhpSpreadsheet/Writer/Xlsx/ContentTypes.php
  279. -
  280. message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: numeric\\-string\\}\\.$#"
  281. count: 1
  282. path: src/PhpSpreadsheet/Writer/Xlsx/Drawing.php