phpstan-baseline.neon 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. parameters:
  2. ignoreErrors:
  3. -
  4. message: "#^Method GuzzleHttp\\\\Client\\:\\:request\\(\\) should return Psr\\\\Http\\\\Message\\\\ResponseInterface but returns mixed\\.$#"
  5. count: 1
  6. path: src/Client.php
  7. -
  8. message: "#^Method GuzzleHttp\\\\Client\\:\\:send\\(\\) should return Psr\\\\Http\\\\Message\\\\ResponseInterface but returns mixed\\.$#"
  9. count: 1
  10. path: src/Client.php
  11. -
  12. message: "#^Method GuzzleHttp\\\\Client\\:\\:sendRequest\\(\\) should return Psr\\\\Http\\\\Message\\\\ResponseInterface but returns mixed\\.$#"
  13. count: 1
  14. path: src/Client.php
  15. -
  16. message: "#^Parameter \\#1 \\$str of function strtolower expects string, int\\|string given\\.$#"
  17. count: 1
  18. path: src/Client.php
  19. -
  20. message: "#^Parameter \\#1 \\$string of function strlen expects string, mixed given\\.$#"
  21. count: 1
  22. path: src/Cookie/SessionCookieJar.php
  23. -
  24. message: "#^Result of && is always false\\.$#"
  25. count: 3
  26. path: src/Cookie/SetCookie.php
  27. -
  28. message: "#^Strict comparison using \\!\\=\\= between null and null will always evaluate to false\\.$#"
  29. count: 3
  30. path: src/Cookie/SetCookie.php
  31. -
  32. message: "#^Unsafe call to private method GuzzleHttp\\\\Exception\\\\RequestException\\:\\:obfuscateUri\\(\\) through static\\:\\:\\.$#"
  33. count: 1
  34. path: src/Exception/RequestException.php
  35. -
  36. message: "#^Cannot access offset 'version' on array\\|false\\.$#"
  37. count: 1
  38. path: src/Handler/CurlFactory.php
  39. -
  40. message: "#^Cannot call method getBody\\(\\) on Psr\\\\Http\\\\Message\\\\ResponseInterface\\|null\\.$#"
  41. count: 1
  42. path: src/Handler/CurlFactory.php
  43. -
  44. message: "#^Parameter \\#1 \\$ch of function curl_close expects resource, CurlHandle\\|resource given\\.$#"
  45. count: 2
  46. path: src/Handler/CurlFactory.php
  47. -
  48. message: "#^Parameter \\#1 \\$ch of function curl_error expects resource, CurlHandle\\|resource given\\.$#"
  49. count: 1
  50. path: src/Handler/CurlFactory.php
  51. -
  52. message: "#^Parameter \\#1 \\$ch of function curl_getinfo expects resource, CurlHandle\\|resource given\\.$#"
  53. count: 4
  54. path: src/Handler/CurlFactory.php
  55. -
  56. message: "#^Parameter \\#1 \\$ch of function curl_reset expects resource, CurlHandle\\|resource given\\.$#"
  57. count: 1
  58. path: src/Handler/CurlFactory.php
  59. -
  60. message: "#^Parameter \\#1 \\$ch of function curl_setopt expects resource, CurlHandle\\|resource given\\.$#"
  61. count: 4
  62. path: src/Handler/CurlFactory.php
  63. -
  64. message: "#^Parameter \\#1 \\$ch of function curl_setopt_array expects resource, CurlHandle\\|resource given\\.$#"
  65. count: 1
  66. path: src/Handler/CurlFactory.php
  67. -
  68. message: "#^Parameter \\#1 \\$str1 of function strcasecmp expects string, int\\|string given\\.$#"
  69. count: 1
  70. path: src/Handler/CurlFactory.php
  71. -
  72. message: "#^Property GuzzleHttp\\\\Handler\\\\CurlFactory\\:\\:\\$handles has unknown class CurlHandle as its type\\.$#"
  73. count: 1
  74. path: src/Handler/CurlFactory.php
  75. -
  76. message: "#^Parameter \\#1 \\$ch of function curl_errno expects resource, CurlHandle\\|resource given\\.$#"
  77. count: 1
  78. path: src/Handler/CurlHandler.php
  79. -
  80. message: "#^Parameter \\#1 \\$ch of function curl_exec expects resource, CurlHandle\\|resource given\\.$#"
  81. count: 1
  82. path: src/Handler/CurlHandler.php
  83. -
  84. message: "#^Method GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:__get\\(\\) has invalid return type CurlMultiHandle\\.$#"
  85. count: 1
  86. path: src/Handler/CurlMultiHandler.php
  87. -
  88. message: "#^Parameter \\#1 \\$mh of function curl_multi_add_handle expects resource, CurlMultiHandle\\|resource given\\.$#"
  89. count: 2
  90. path: src/Handler/CurlMultiHandler.php
  91. -
  92. message: "#^Parameter \\#1 \\$mh of function curl_multi_close expects resource, CurlMultiHandle\\|resource given\\.$#"
  93. count: 1
  94. path: src/Handler/CurlMultiHandler.php
  95. -
  96. message: "#^Parameter \\#1 \\$mh of function curl_multi_exec expects resource, CurlMultiHandle\\|resource given\\.$#"
  97. count: 1
  98. path: src/Handler/CurlMultiHandler.php
  99. -
  100. message: "#^Parameter \\#1 \\$mh of function curl_multi_info_read expects resource, CurlMultiHandle\\|resource given\\.$#"
  101. count: 1
  102. path: src/Handler/CurlMultiHandler.php
  103. -
  104. message: "#^Parameter \\#1 \\$mh of function curl_multi_remove_handle expects resource, CurlMultiHandle\\|resource given\\.$#"
  105. count: 2
  106. path: src/Handler/CurlMultiHandler.php
  107. -
  108. message: "#^Parameter \\#1 \\$mh of function curl_multi_select expects resource, CurlMultiHandle\\|resource given\\.$#"
  109. count: 1
  110. path: src/Handler/CurlMultiHandler.php
  111. -
  112. message: "#^Property GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:\\$_mh \\(CurlMultiHandle\\|resource\\) in isset\\(\\) is not nullable\\.$#"
  113. count: 1
  114. path: src/Handler/CurlMultiHandler.php
  115. -
  116. message: "#^Property GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:\\$_mh has unknown class CurlMultiHandle as its type\\.$#"
  117. count: 1
  118. path: src/Handler/CurlMultiHandler.php
  119. -
  120. message: "#^Property GuzzleHttp\\\\Handler\\\\EasyHandle\\:\\:\\$handle has unknown class CurlHandle as its type\\.$#"
  121. count: 1
  122. path: src/Handler/EasyHandle.php
  123. -
  124. message: "#^Trying to invoke mixed but it's not a callable\\.$#"
  125. count: 1
  126. path: src/Handler/StreamHandler.php
  127. -
  128. message: "#^Variable \\$http_response_header on left side of \\?\\? always exists and is not nullable\\.$#"
  129. count: 1
  130. path: src/Handler/StreamHandler.php
  131. -
  132. message: "#^Variable \\$options in empty\\(\\) always exists and is not falsy\\.$#"
  133. count: 1
  134. path: src/Handler/StreamHandler.php
  135. -
  136. message: "#^Result of && is always false\\.$#"
  137. count: 1
  138. path: src/HandlerStack.php
  139. -
  140. message: "#^Result of && is always false\\.$#"
  141. count: 2
  142. path: src/Middleware.php
  143. -
  144. message: "#^Method GuzzleHttp\\\\Utils\\:\\:jsonDecode\\(\\) should return array\\|bool\\|float\\|int\\|object\\|string\\|null but returns mixed\\.$#"
  145. count: 1
  146. path: src/Utils.php
  147. -
  148. message: "#^Parameter \\#3 \\$depth of function json_decode expects int\\<1, max\\>, int given\\.$#"
  149. count: 1
  150. path: src/Utils.php
  151. -
  152. message: "#^Parameter \\#3 \\$depth of function json_encode expects int\\<1, max\\>, int given\\.$#"
  153. count: 1
  154. path: src/Utils.php