phpstan-baseline.neon 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. parameters:
  2. ignoreErrors:
  3. -
  4. message: "#^Access to undefined constant Memcached\\:\\:DYNAMIC_CLIENT_MODE\\.$#"
  5. count: 1
  6. path: src/Cache/Engine/MemcachedEngine.php
  7. -
  8. message: "#^Access to undefined constant Memcached\\:\\:OPT_CLIENT_MODE\\.$#"
  9. count: 1
  10. path: src/Cache/Engine/MemcachedEngine.php
  11. -
  12. message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects Iterator, Countable&Traversable\\<mixed, mixed\\> given\\.$#"
  13. count: 2
  14. path: src/Collection/Collection.php
  15. -
  16. message: "#^Strict comparison using \\=\\=\\= between class\\-string\\<ArrayObject\\> and 'ArrayIterator' will always evaluate to false\\.$#"
  17. count: 1
  18. path: src/Collection/Collection.php
  19. -
  20. message: "#^Call to an undefined method Iterator\\:\\:getArrayCopy\\(\\)\\.$#"
  21. count: 1
  22. path: src/Collection/Iterator/ExtractIterator.php
  23. -
  24. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  25. count: 1
  26. path: src/Collection/Iterator/NestIterator.php
  27. -
  28. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  29. count: 1
  30. path: src/Collection/Iterator/NoChildrenIterator.php
  31. -
  32. message: "#^Parameter \\#1 \\$items of class Cake\\\\Collection\\\\Iterator\\\\TreePrinter constructor expects RecursiveIterator, Iterator\\<mixed, mixed\\> given\\.$#"
  33. count: 1
  34. path: src/Collection/Iterator/TreeIterator.php
  35. -
  36. message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects Iterator, Countable&Traversable\\<mixed, mixed\\> given\\.$#"
  37. count: 2
  38. path: src/Collection/Iterator/TreeIterator.php
  39. -
  40. message: "#^Strict comparison using \\=\\=\\= between class\\-string\\<ArrayObject\\> and 'ArrayIterator' will always evaluate to false\\.$#"
  41. count: 1
  42. path: src/Collection/Iterator/TreeIterator.php
  43. -
  44. message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects Iterator, Countable&Traversable\\<mixed, mixed\\> given\\.$#"
  45. count: 2
  46. path: src/Collection/Iterator/TreePrinter.php
  47. -
  48. message: "#^Strict comparison using \\=\\=\\= between class\\-string\\<ArrayObject\\> and 'ArrayIterator' will always evaluate to false\\.$#"
  49. count: 1
  50. path: src/Collection/Iterator/TreePrinter.php
  51. -
  52. message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects Iterator, Countable&Traversable\\<mixed, mixed\\> given\\.$#"
  53. count: 2
  54. path: src/Collection/Iterator/ZipIterator.php
  55. -
  56. message: "#^Strict comparison using \\=\\=\\= between class\\-string\\<ArrayObject\\> and 'ArrayIterator' will always evaluate to false\\.$#"
  57. count: 1
  58. path: src/Collection/Iterator/ZipIterator.php
  59. -
  60. message: "#^Strict comparison using \\!\\=\\= between null and null will always evaluate to false\\.$#"
  61. count: 2
  62. path: src/Command/I18nExtractCommand.php
  63. -
  64. message: "#^Strict comparison using \\=\\=\\= between '/' and '\\\\\\\\' will always evaluate to false\\.$#"
  65. count: 1
  66. path: src/Command/PluginAssetsCopyCommand.php
  67. -
  68. message: "#^Strict comparison using \\=\\=\\= between '/' and '\\\\\\\\' will always evaluate to false\\.$#"
  69. count: 1
  70. path: src/Command/PluginAssetsRemoveCommand.php
  71. -
  72. message: "#^Strict comparison using \\=\\=\\= between '/' and '\\\\\\\\' will always evaluate to false\\.$#"
  73. count: 1
  74. path: src/Command/PluginAssetsSymlinkCommand.php
  75. -
  76. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  77. count: 2
  78. path: src/Console/ConsoleOptionParser.php
  79. -
  80. message: "#^Property Cake\\\\Controller\\\\Controller\\:\\:\\$response \\(Cake\\\\Http\\\\Response\\) does not accept Psr\\\\Http\\\\Message\\\\ResponseInterface\\.$#"
  81. count: 1
  82. path: src/Controller/Controller.php
  83. -
  84. message: "#^Parameter \\#1 \\$request of method Cake\\\\Controller\\\\Controller\\:\\:setRequest\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
  85. count: 1
  86. path: src/Controller/ControllerFactory.php
  87. -
  88. message: "#^Parameter \\#1 \\$request of method Cake\\\\Controller\\\\ControllerFactory\\:\\:getControllerClass\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
  89. count: 1
  90. path: src/Controller/ControllerFactory.php
  91. -
  92. message: "#^Parameter \\#1 \\$request of method Cake\\\\Controller\\\\ControllerFactory\\:\\:missingController\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
  93. count: 2
  94. path: src/Controller/ControllerFactory.php
  95. -
  96. message: "#^PHPDoc tag @param for parameter \\$class with type string\\|TObject is not subtype of native type object\\|string\\.$#"
  97. count: 1
  98. path: src/Core/ObjectRegistry.php
  99. -
  100. message: "#^PHPDoc tag @param for parameter \\$object with type TObject is not subtype of native type object\\.$#"
  101. count: 2
  102. path: src/Core/ObjectRegistry.php
  103. -
  104. message: "#^PHPDoc tag @return with type TObject is not subtype of native type object\\.$#"
  105. count: 3
  106. path: src/Core/ObjectRegistry.php
  107. -
  108. message: "#^PHPDoc tag @return with type TObject\\|null is not subtype of native type object\\|null\\.$#"
  109. count: 1
  110. path: src/Core/ObjectRegistry.php
  111. -
  112. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  113. count: 8
  114. path: src/Database/Expression/QueryExpression.php
  115. -
  116. message: "#^Constructor of class Cake\\\\Error\\\\Renderer\\\\ConsoleExceptionRenderer has an unused parameter \\$request\\.$#"
  117. count: 1
  118. path: src/Error/Renderer/ConsoleExceptionRenderer.php
  119. -
  120. message: "#^PHPDoc tag @param for parameter \\$subject with type TSubject\\|null is not subtype of native type object\\|null\\.$#"
  121. count: 1
  122. path: src/Event/Event.php
  123. -
  124. message: "#^PHPDoc tag @return with type TSubject is not subtype of native type object\\.$#"
  125. count: 1
  126. path: src/Event/Event.php
  127. -
  128. message: "#^PHPDoc tag @var for property Cake\\\\Event\\\\Event\\:\\:\\$_subject with type TSubject\\|null is not subtype of native type object\\|null\\.$#"
  129. count: 1
  130. path: src/Event/Event.php
  131. -
  132. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  133. count: 1
  134. path: src/Event/EventManager.php
  135. -
  136. message: "#^Parameter \\#1 \\$request of static method Cake\\\\Routing\\\\Router\\:\\:setRequest\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
  137. count: 1
  138. path: src/Http/BaseApplication.php
  139. -
  140. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  141. count: 1
  142. path: src/Http/Client.php
  143. -
  144. message: "#^Constructor of class Cake\\\\Http\\\\Client\\\\Auth\\\\Digest has an unused parameter \\$options\\.$#"
  145. count: 1
  146. path: src/Http/Client/Auth/Digest.php
  147. -
  148. message: "#^Call to an undefined method DateTimeInterface\\:\\:setTimezone\\(\\)\\.$#"
  149. count: 3
  150. path: src/Http/Cookie/Cookie.php
  151. -
  152. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  153. count: 1
  154. path: src/Http/Cookie/Cookie.php
  155. -
  156. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  157. count: 2
  158. path: src/Http/Cookie/CookieCollection.php
  159. -
  160. message: "#^Call to an undefined method DateTimeInterface\\:\\:setTimezone\\(\\)\\.$#"
  161. count: 1
  162. path: src/Http/Response.php
  163. -
  164. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  165. count: 1
  166. path: src/Http/Session.php
  167. -
  168. message: "#^Call to an undefined method Cake\\\\Chronos\\\\DifferenceFormatterInterface\\:\\:dateAgoInWords\\(\\)\\.$#"
  169. count: 1
  170. path: src/I18n/Date.php
  171. -
  172. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  173. count: 1
  174. path: src/I18n/Date.php
  175. -
  176. message: "#^Call to an undefined method Cake\\\\Chronos\\\\DifferenceFormatterInterface\\:\\:timeAgoInWords\\(\\)\\.$#"
  177. count: 1
  178. path: src/I18n/DateTime.php
  179. -
  180. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  181. count: 1
  182. path: src/I18n/DateTime.php
  183. -
  184. message: "#^Access to an undefined property Cake\\\\Mailer\\\\Renderer\\:\\:\\$request\\.$#"
  185. count: 1
  186. path: src/Mailer/Renderer.php
  187. -
  188. message: "#^Access to an undefined property Cake\\\\Mailer\\\\Renderer\\:\\:\\$response\\.$#"
  189. count: 1
  190. path: src/Mailer/Renderer.php
  191. -
  192. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  193. count: 2
  194. path: src/ORM/EagerLoader.php
  195. -
  196. message: "#^Parameter \\#1 \\$assoc of method Cake\\\\ORM\\\\Marshaller\\:\\:_belongsToMany\\(\\) expects Cake\\\\ORM\\\\Association\\\\BelongsToMany, Cake\\\\ORM\\\\Association given\\.$#"
  197. count: 1
  198. path: src/ORM/Marshaller.php
  199. -
  200. message: "#^Parameter \\#2 \\$assoc of method Cake\\\\ORM\\\\Marshaller\\:\\:_mergeBelongsToMany\\(\\) expects Cake\\\\ORM\\\\Association\\\\BelongsToMany, Cake\\\\ORM\\\\Association given\\.$#"
  201. count: 1
  202. path: src/ORM/Marshaller.php
  203. -
  204. message: "#^Method Cake\\\\ORM\\\\Query\\:\\:find\\(\\) should return static\\(Cake\\\\ORM\\\\Query\\) but returns Cake\\\\ORM\\\\Query\\.$#"
  205. count: 1
  206. path: src/ORM/Query.php
  207. -
  208. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  209. count: 1
  210. path: src/ORM/Query.php
  211. -
  212. message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects Iterator, Countable&Traversable\\<mixed, mixed\\> given\\.$#"
  213. count: 2
  214. path: src/ORM/ResultSet.php
  215. -
  216. message: "#^Strict comparison using \\=\\=\\= between class\\-string\\<ArrayObject\\> and 'ArrayIterator' will always evaluate to false\\.$#"
  217. count: 1
  218. path: src/ORM/ResultSet.php
  219. -
  220. message: "#^Parameter \\#1 \\$rules of method Cake\\\\ORM\\\\Table\\:\\:buildRules\\(\\) expects Cake\\\\ORM\\\\RulesChecker, Cake\\\\Datasource\\\\RulesChecker given\\.$#"
  221. count: 1
  222. path: src/ORM/Table.php
  223. -
  224. message: "#^Ternary operator condition is always true\\.$#"
  225. count: 1
  226. path: src/ORM/Table.php
  227. -
  228. message: "#^Parameter \\#1 \\$request of static method Cake\\\\Routing\\\\Router\\:\\:parseRequest\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
  229. count: 1
  230. path: src/Routing/Middleware/RoutingMiddleware.php
  231. -
  232. message: "#^Parameter \\#1 \\$request of static method Cake\\\\Routing\\\\Router\\:\\:setRequest\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
  233. count: 1
  234. path: src/Routing/Middleware/RoutingMiddleware.php
  235. -
  236. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  237. count: 1
  238. path: src/Routing/RouteBuilder.php
  239. -
  240. message: "#^Offset 0 does not exist on array\\<string, mixed\\>\\.$#"
  241. count: 1
  242. path: src/TestSuite/TestCase.php
  243. -
  244. message: "#^Offset 1 does not exist on array\\<string, mixed\\>\\.$#"
  245. count: 1
  246. path: src/TestSuite/TestCase.php
  247. -
  248. message: "#^Offset 2 does not exist on array\\<string, mixed\\>\\.$#"
  249. count: 1
  250. path: src/TestSuite/TestCase.php
  251. -
  252. message: "#^Unsafe access to private property Cake\\\\TestSuite\\\\TestEmailTransport\\:\\:\\$messages through static\\:\\:\\.$#"
  253. count: 3
  254. path: src/TestSuite/TestEmailTransport.php
  255. -
  256. message: "#^Dead catch \\- Error is never thrown in the try block\\.$#"
  257. count: 1
  258. path: src/View/Cell.php
  259. -
  260. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  261. count: 1
  262. path: src/View/Form/ContextFactory.php
  263. -
  264. message: "#^Constructor of class Cake\\\\View\\\\Form\\\\NullContext has an unused parameter \\$context\\.$#"
  265. count: 1
  266. path: src/View/Form/NullContext.php
  267. -
  268. message: "#^Call to an undefined method DateTimeInterface\\:\\:setTimezone\\(\\)\\.$#"
  269. count: 1
  270. path: src/View/Helper/TimeHelper.php