phpstan-baseline.neon 9.6 KB

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