phpstan-baseline.neon 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. parameters:
  2. ignoreErrors:
  3. -
  4. message: "#^Property chillerlan\\\\QRCodeBenchmark\\\\DecoderBenchmark\\:\\:\\$imageBlob \\(string\\) does not accept GdImage\\|string\\.$#"
  5. count: 1
  6. path: benchmark/DecoderBenchmark.php
  7. -
  8. message: "#^Parameter \\#1 \\$segment of method chillerlan\\\\QRCode\\\\QRCode\\:\\:addSegment\\(\\) expects chillerlan\\\\QRCode\\\\Data\\\\QRDataModeInterface, object given\\.$#"
  9. count: 1
  10. path: benchmark/QRCodeBenchmark.php
  11. -
  12. message: "#^Parameter \\#2 \\$dataSegments of class chillerlan\\\\QRCode\\\\Data\\\\QRData constructor expects array\\<chillerlan\\\\QRCode\\\\Data\\\\QRDataModeInterface\\>, array\\<int, object\\> given\\.$#"
  13. count: 2
  14. path: benchmark/QRDataBenchmark.php
  15. -
  16. message: "#^Parameter \\#1 \\$string of function strtolower expects string, int\\|string given\\.$#"
  17. count: 1
  18. path: benchmark/generate-markdown.php
  19. -
  20. message: "#^Offset 'name' does not exist on array\\<int, mixed\\>\\.$#"
  21. count: 1
  22. path: benchmark/parse-common.php
  23. -
  24. message: "#^Offset 'results' does not exist on array\\<int, mixed\\>\\.$#"
  25. count: 1
  26. path: benchmark/parse-common.php
  27. -
  28. message: "#^Offset 0 does not exist on array\\{\\}\\.$#"
  29. count: 1
  30. path: benchmark/parse-common.php
  31. -
  32. message: "#^Function chillerlan\\\\QRCodeBenchmark\\\\parseLine\\(\\) return type has no value type specified in iterable type array\\.$#"
  33. count: 1
  34. path: benchmark/parse-result.php
  35. -
  36. message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#"
  37. count: 1
  38. path: benchmark/parse-result.php
  39. -
  40. message: "#^Property chillerlan\\\\QRCode\\\\QROptions\\:\\:\\$eccLevel \\(int\\) does not accept string\\.$#"
  41. count: 1
  42. path: examples/custom_output.php
  43. -
  44. message: "#^Parameter \\#1 \\$width of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#"
  45. count: 1
  46. path: examples/imageWithText.php
  47. -
  48. message: "#^Parameter \\#2 \\$color of function imagecolortransparent expects int\\|null, int\\<0, max\\>\\|false given\\.$#"
  49. count: 1
  50. path: examples/imageWithText.php
  51. -
  52. message: "#^Parameter \\#2 \\$height of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#"
  53. count: 1
  54. path: examples/imageWithText.php
  55. -
  56. message: "#^Parameter \\#6 \\$color of function imagechar expects int, int\\<0, max\\>\\|false given\\.$#"
  57. count: 1
  58. path: examples/imageWithText.php
  59. -
  60. message: "#^Parameter \\#6 \\$color of function imagefilledrectangle expects int, int\\<0, max\\>\\|false given\\.$#"
  61. count: 1
  62. path: examples/imageWithText.php
  63. -
  64. message: "#^Parameter \\#1 \\(Intervention\\\\Image\\\\Interfaces\\\\ImageInterface\\|string\\) of echo cannot be converted to string\\.$#"
  65. count: 1
  66. path: examples/intervention-image.php
  67. -
  68. message: "#^Method RandomDotsSVGOutput\\:\\:collectModules\\(\\) should return array\\<int, mixed\\> but returns array\\<int\\|string, array\\<int, mixed\\>\\>\\.$#"
  69. count: 1
  70. path: examples/svgRandomColoredDots.php
  71. -
  72. message: "#^Method RoundQuietzoneSVGoutput\\:\\:collectModules\\(\\) should return array\\<int, mixed\\> but returns array\\<int\\|string, array\\<int, mixed\\>\\>\\.$#"
  73. count: 1
  74. path: examples/svgRoundQuietzone.php
  75. -
  76. message: "#^Parameter \\#1 \\$data of function imagecreatefromstring expects string, string\\|false given\\.$#"
  77. count: 1
  78. path: src/Common/GDLuminanceSource.php
  79. -
  80. message: "#^Parameter \\#1 \\$gdImage of class chillerlan\\\\QRCode\\\\Common\\\\GDLuminanceSource constructor expects GdImage, GdImage\\|false given\\.$#"
  81. count: 2
  82. path: src/Common/GDLuminanceSource.php
  83. -
  84. message: "#^Parameter \\#2 \\$color of function imagecolorsforindex expects int, int\\<0, max\\>\\|false given\\.$#"
  85. count: 1
  86. path: src/Common/GDLuminanceSource.php
  87. -
  88. message: "#^Parameter \\#1 \\$maskPattern of class chillerlan\\\\QRCode\\\\Common\\\\MaskPattern constructor expects int, int\\|false given\\.$#"
  89. count: 1
  90. path: src/Common/MaskPattern.php
  91. -
  92. message: "#^Method chillerlan\\\\QRCode\\\\Common\\\\Version\\:\\:getRSBlocks\\(\\) return type has no value type specified in iterable type array\\.$#"
  93. count: 1
  94. path: src/Common/Version.php
  95. -
  96. message: "#^Parameter \\#1 \\$encoding of function mb_detect_order expects non\\-empty\\-list\\<non\\-falsy\\-string\\>\\|non\\-falsy\\-string\\|null, array\\{string, 'UTF\\-8', 'GB2312', 'GB18030', 'CP936', 'EUC\\-CN', 'HZ'\\} given\\.$#"
  97. count: 1
  98. path: src/Data/Hanzi.php
  99. -
  100. message: "#^Parameter \\#1 \\$encoding of function mb_detect_order expects non\\-empty\\-list\\<non\\-falsy\\-string\\>\\|non\\-falsy\\-string\\|null, array\\{string, 'UTF\\-8', 'SJIS', 'SJIS\\-2004'\\} given\\.$#"
  101. count: 1
  102. path: src/Data/Kanji.php
  103. -
  104. message: "#^Parameter \\#1 \\$version of class chillerlan\\\\QRCode\\\\Data\\\\ReedSolomonEncoder constructor expects chillerlan\\\\QRCode\\\\Common\\\\Version, chillerlan\\\\QRCode\\\\Common\\\\Version\\|null given\\.$#"
  105. count: 1
  106. path: src/Data/QRMatrix.php
  107. -
  108. message: "#^Parameter \\#2 \\$eccLevel of class chillerlan\\\\QRCode\\\\Data\\\\ReedSolomonEncoder constructor expects chillerlan\\\\QRCode\\\\Common\\\\EccLevel, chillerlan\\\\QRCode\\\\Common\\\\EccLevel\\|null given\\.$#"
  109. count: 1
  110. path: src/Data/QRMatrix.php
  111. -
  112. message: "#^Parameter \\#1 \\$maskPattern of method chillerlan\\\\QRCode\\\\Data\\\\QRMatrix\\:\\:mask\\(\\) expects chillerlan\\\\QRCode\\\\Common\\\\MaskPattern, chillerlan\\\\QRCode\\\\Common\\\\MaskPattern\\|null given\\.$#"
  113. count: 1
  114. path: src/Decoder/BitMatrix.php
  115. -
  116. message: "#^Parameter \\#1 \\$version of class chillerlan\\\\QRCode\\\\Data\\\\QRMatrix constructor expects chillerlan\\\\QRCode\\\\Common\\\\Version, chillerlan\\\\QRCode\\\\Common\\\\Version\\|null given\\.$#"
  117. count: 1
  118. path: src/Decoder/BitMatrix.php
  119. -
  120. message: "#^Parameter \\#2 \\$b of method chillerlan\\\\QRCode\\\\Decoder\\\\BitMatrix\\:\\:numBitsDiffering\\(\\) expects int, int\\|null given\\.$#"
  121. count: 1
  122. path: src/Decoder/BitMatrix.php
  123. -
  124. message: "#^Parameter \\#2 \\$eccLevel of class chillerlan\\\\QRCode\\\\Data\\\\QRMatrix constructor expects chillerlan\\\\QRCode\\\\Common\\\\EccLevel, chillerlan\\\\QRCode\\\\Common\\\\EccLevel\\|null given\\.$#"
  125. count: 1
  126. path: src/Decoder/BitMatrix.php
  127. -
  128. message: "#^Property chillerlan\\\\QRCode\\\\Decoder\\\\Decoder\\:\\:\\$options is never read, only written\\.$#"
  129. count: 1
  130. path: src/Decoder/Decoder.php
  131. -
  132. message: "#^Method chillerlan\\\\QRCode\\\\Decoder\\\\ReedSolomonDecoder\\:\\:deinterleaveRawBytes\\(\\) return type has no value type specified in iterable type array\\.$#"
  133. count: 1
  134. path: src/Decoder/ReedSolomonDecoder.php
  135. -
  136. message: "#^Parameter \\#1 \\$width of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#"
  137. count: 1
  138. path: src/Output/QRGdImage.php
  139. -
  140. message: "#^Parameter \\#2 \\$height of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#"
  141. count: 1
  142. path: src/Output/QRGdImage.php
  143. -
  144. message: "#^Method chillerlan\\\\QRCodeTest\\\\Common\\\\MaskPatternTest\\:\\:assertMask\\(\\) has parameter \\$expected with no value type specified in iterable type array\\.$#"
  145. count: 1
  146. path: tests/Common/MaskPatternTest.php
  147. -
  148. message: "#^Method chillerlan\\\\QRCodeTest\\\\Common\\\\MaskPatternTest\\:\\:maskPatternProvider\\(\\) return type has no value type specified in iterable type array\\.$#"
  149. count: 1
  150. path: tests/Common/MaskPatternTest.php
  151. -
  152. message: "#^Method chillerlan\\\\QRCodeTest\\\\Common\\\\MaskPatternTest\\:\\:testMask\\(\\) has parameter \\$expected with no value type specified in iterable type array\\.$#"
  153. count: 1
  154. path: tests/Common/MaskPatternTest.php
  155. -
  156. message: "#^Parameter \\#1 \\$string of static method chillerlan\\\\QRCode\\\\Data\\\\QRDataModeInterface\\:\\:validateString\\(\\) expects string, string\\|false given\\.$#"
  157. count: 1
  158. path: tests/Data/DataInterfaceTestAbstract.php
  159. -
  160. message: "#^Parameter \\#2 \\$to_encoding of function mb_convert_encoding expects string, string\\|null given\\.$#"
  161. count: 1
  162. path: tests/Data/ECITest.php
  163. -
  164. message: "#^Parameter \\#1 \\$blob of method chillerlan\\\\QRCode\\\\QRCode\\:\\:readFromBlob\\(\\) expects string, GdImage\\|string given\\.$#"
  165. count: 1
  166. path: tests/Data/QRDataTest.php