phpstan-baseline.neon 9.1 KB

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