phpstan-baseline.neon 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847
  1. parameters:
  2. ignoreErrors:
  3. -
  4. message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#"
  5. count: 1
  6. path: src/Auth/DigestAuthenticate.php
  7. -
  8. message: "#^Method Cake\\\\Auth\\\\Storage\\\\MemoryStorage\\:\\:redirectUrl\\(\\) should return array\\|string\\|null but return statement is missing\\.$#"
  9. count: 1
  10. path: src/Auth/Storage/MemoryStorage.php
  11. -
  12. message: "#^Constructor of class Cake\\\\Auth\\\\Storage\\\\SessionStorage has an unused parameter \\$response\\.$#"
  13. count: 1
  14. path: src/Auth/Storage/SessionStorage.php
  15. -
  16. message: "#^Method Cake\\\\Auth\\\\Storage\\\\SessionStorage\\:\\:redirectUrl\\(\\) should return array\\|string\\|null but return statement is missing\\.$#"
  17. count: 1
  18. path: src/Auth/Storage/SessionStorage.php
  19. -
  20. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  21. count: 2
  22. path: src/Cache/CacheEngine.php
  23. -
  24. message: "#^Access to undefined constant Memcached\\:\\:OPT_CLIENT_MODE\\.$#"
  25. count: 1
  26. path: src/Cache/Engine/MemcachedEngine.php
  27. -
  28. message: "#^Access to undefined constant Memcached\\:\\:DYNAMIC_CLIENT_MODE\\.$#"
  29. count: 1
  30. path: src/Cache/Engine/MemcachedEngine.php
  31. -
  32. message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects Iterator, Countable&Traversable given\\.$#"
  33. count: 2
  34. path: src/Collection/Collection.php
  35. -
  36. message: "#^Parameter \\#1 \\$it of method AppendIterator\\:\\:append\\(\\) expects Iterator, Traversable given\\.$#"
  37. count: 2
  38. path: src/Collection/Collection.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/Collection.php
  43. -
  44. message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects Iterator, Countable&Traversable given\\.$#"
  45. count: 2
  46. path: src/Collection/Iterator/TreeIterator.php
  47. -
  48. message: "#^Parameter \\#1 \\$it of method AppendIterator\\:\\:append\\(\\) expects Iterator, Traversable given\\.$#"
  49. count: 2
  50. path: src/Collection/Iterator/TreeIterator.php
  51. -
  52. message: "#^Strict comparison using \\=\\=\\= between class\\-string\\<ArrayObject\\> and 'ArrayIterator' will always evaluate to false\\.$#"
  53. count: 1
  54. path: src/Collection/Iterator/TreeIterator.php
  55. -
  56. message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects Iterator, Countable&Traversable given\\.$#"
  57. count: 2
  58. path: src/Collection/Iterator/TreePrinter.php
  59. -
  60. message: "#^Parameter \\#1 \\$it of method AppendIterator\\:\\:append\\(\\) expects Iterator, Traversable given\\.$#"
  61. count: 2
  62. path: src/Collection/Iterator/TreePrinter.php
  63. -
  64. message: "#^Strict comparison using \\=\\=\\= between class\\-string\\<ArrayObject\\> and 'ArrayIterator' will always evaluate to false\\.$#"
  65. count: 1
  66. path: src/Collection/Iterator/TreePrinter.php
  67. -
  68. message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects Iterator, Countable&Traversable given\\.$#"
  69. count: 2
  70. path: src/Collection/Iterator/ZipIterator.php
  71. -
  72. message: "#^Parameter \\#1 \\$it of method AppendIterator\\:\\:append\\(\\) expects Iterator, Traversable given\\.$#"
  73. count: 2
  74. path: src/Collection/Iterator/ZipIterator.php
  75. -
  76. message: "#^Strict comparison using \\=\\=\\= between class\\-string\\<ArrayObject\\> and 'ArrayIterator' will always evaluate to false\\.$#"
  77. count: 1
  78. path: src/Collection/Iterator/ZipIterator.php
  79. -
  80. message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects Iterator, Countable&Traversable given\\.$#"
  81. count: 2
  82. path: src/ORM/ResultSet.php
  83. -
  84. message: "#^Parameter \\#1 \\$it of method AppendIterator\\:\\:append\\(\\) expects Iterator, Traversable given\\.$#"
  85. count: 2
  86. path: src/ORM/ResultSet.php
  87. -
  88. message: "#^Strict comparison using \\=\\=\\= between class\\-string\\<ArrayObject\\> and 'ArrayIterator' will always evaluate to false\\.$#"
  89. count: 1
  90. path: src/ORM/ResultSet.php
  91. -
  92. message: "#^Method Cake\\\\ORM\\\\ResultSet\\:\\:first\\(\\) should return array\\|object but return statement is missing\\.$#"
  93. count: 1
  94. path: src/ORM/ResultSet.php
  95. -
  96. message: "#^Call to an undefined method Traversable\\:\\:getArrayCopy\\(\\)\\.$#"
  97. count: 1
  98. path: src/Collection/Iterator/ExtractIterator.php
  99. -
  100. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  101. count: 1
  102. path: src/Collection/Iterator/NestIterator.php
  103. -
  104. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  105. count: 1
  106. path: src/Collection/Iterator/NoChildrenIterator.php
  107. -
  108. message: "#^Parameter \\#1 \\$var_array of function extract is passed by reference, so it expects variables only\\.$#"
  109. count: 1
  110. path: src/Command/I18nExtractCommand.php
  111. -
  112. message: "#^Strict comparison using \\!\\=\\= between null and null will always evaluate to false\\.$#"
  113. count: 2
  114. path: src/Command/I18nExtractCommand.php
  115. -
  116. message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
  117. count: 1
  118. path: src/Console/CommandCollection.php
  119. -
  120. message: "#^Strict comparison using \\=\\=\\= between int and null will always evaluate to false\\.$#"
  121. count: 1
  122. path: src/Console/CommandRunner.php
  123. -
  124. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  125. count: 2
  126. path: src/Console/ConsoleOptionParser.php
  127. -
  128. message: "#^Strict comparison using \\=\\=\\= between int and null will always evaluate to false\\.$#"
  129. count: 1
  130. path: src/Console/ShellDispatcher.php
  131. -
  132. message: "#^Call to an undefined method Cake\\\\Auth\\\\Storage\\\\StorageInterface\\:\\:getConfig\\(\\)\\.$#"
  133. count: 1
  134. path: src/Controller/Component/AuthComponent.php
  135. -
  136. message: "#^Call to an undefined method Cake\\\\Auth\\\\Storage\\\\StorageInterface\\:\\:setConfig\\(\\)\\.$#"
  137. count: 1
  138. path: src/Controller/Component/AuthComponent.php
  139. -
  140. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  141. count: 1
  142. path: src/Controller/Component/RequestHandlerComponent.php
  143. -
  144. message: "#^Property Cake\\\\Controller\\\\Controller\\:\\:\\$response \\(Cake\\\\Http\\\\Response\\) does not accept Psr\\\\Http\\\\Message\\\\ResponseInterface\\.$#"
  145. count: 1
  146. path: src/Controller/Controller.php
  147. -
  148. message: "#^Parameter \\#1 \\$request of method Cake\\\\Controller\\\\ControllerFactory\\:\\:getControllerClass\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
  149. count: 1
  150. path: src/Controller/ControllerFactory.php
  151. -
  152. message: "#^Parameter \\#1 \\$request of method Cake\\\\Controller\\\\ControllerFactory\\:\\:missingController\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
  153. count: 2
  154. path: src/Controller/ControllerFactory.php
  155. -
  156. message: "#^Parameter \\#1 \\$autoload_function of function spl_autoload_register expects callable\\(string\\)\\: void, array\\(\\$this\\(Cake\\\\Core\\\\ClassLoader\\), 'loadClass'\\) given\\.$#"
  157. count: 1
  158. path: src/Core/ClassLoader.php
  159. -
  160. message: "#^PHPDoc tag @param for parameter \\$object with type TObject is not subtype of native type object\\.$#"
  161. count: 1
  162. path: src/Core/ObjectRegistry.php
  163. -
  164. message: "#^Array \\(array\\<string, TObject\\>\\) does not accept object\\.$#"
  165. count: 1
  166. path: src/Core/ObjectRegistry.php
  167. -
  168. message: "#^Variable \\$_registry in PHPDoc tag @var does not exist\\.$#"
  169. count: 1
  170. path: src/Cache/Cache.php
  171. -
  172. message: "#^Variable \\$_registry in PHPDoc tag @var does not exist\\.$#"
  173. count: 1
  174. path: src/Datasource/ConnectionManager.php
  175. -
  176. message: "#^Variable \\$_registry in PHPDoc tag @var does not exist\\.$#"
  177. count: 1
  178. path: src/Log/Log.php
  179. -
  180. message: "#^Variable \\$_registry in PHPDoc tag @var does not exist\\.$#"
  181. count: 1
  182. path: src/Mailer/Mailer.php
  183. -
  184. message: "#^Variable \\$_registry in PHPDoc tag @var does not exist\\.$#"
  185. count: 1
  186. path: src/Mailer/TransportFactory.php
  187. -
  188. message: "#^Access to an undefined property PDO\\:\\:\\$_connection\\.$#"
  189. count: 1
  190. path: src/Database/Driver/Sqlserver.php
  191. -
  192. message: "#^If condition is always true\\.$#"
  193. count: 1
  194. path: src/Database/Driver/Sqlserver.php
  195. -
  196. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  197. count: 1
  198. path: src/Database/Driver/Sqlserver.php
  199. -
  200. message: "#^Instanceof between mixed and int\\|string results in an error\\.$#"
  201. count: 1
  202. path: src/Database/Driver/Sqlserver.php
  203. -
  204. message: "#^Property Cake\\\\Database\\\\Driver\\:\\:\\$_connection \\(PDO\\) does not accept null\\.$#"
  205. count: 2
  206. path: src/Database/Driver.php
  207. -
  208. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  209. count: 1
  210. path: src/Database/Driver.php
  211. -
  212. message: "#^If condition is always true\\.$#"
  213. count: 1
  214. path: src/Database/Driver/Mysql.php
  215. -
  216. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  217. count: 1
  218. path: src/Database/Driver/Mysql.php
  219. -
  220. message: "#^Instanceof between mixed and int\\|string results in an error\\.$#"
  221. count: 1
  222. path: src/Database/Driver/Mysql.php
  223. -
  224. message: "#^If condition is always true\\.$#"
  225. count: 1
  226. path: src/Database/Driver/Postgres.php
  227. -
  228. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  229. count: 1
  230. path: src/Database/Driver/Postgres.php
  231. -
  232. message: "#^Instanceof between mixed and int\\|string results in an error\\.$#"
  233. count: 1
  234. path: src/Database/Driver/Postgres.php
  235. -
  236. message: "#^If condition is always true\\.$#"
  237. count: 1
  238. path: src/Database/Driver/Sqlite.php
  239. -
  240. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  241. count: 1
  242. path: src/Database/Driver/Sqlite.php
  243. -
  244. message: "#^Instanceof between mixed and int\\|string results in an error\\.$#"
  245. count: 1
  246. path: src/Database/Driver/Sqlite.php
  247. -
  248. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  249. count: 7
  250. path: src/Database/Expression/QueryExpression.php
  251. -
  252. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  253. count: 1
  254. path: src/Database/Expression/QueryExpression.php
  255. -
  256. message: "#^Access to an undefined property Exception\\:\\:\\$queryString\\.$#"
  257. count: 1
  258. path: src/Database/Log/LoggingStatement.php
  259. -
  260. message: "#^Result of && is always false\\.$#"
  261. count: 1
  262. path: src/Database/Query.php
  263. -
  264. message: "#^Access to undefined constant PDO\\:\\:SQLSRV_ENCODING_BINARY\\.$#"
  265. count: 1
  266. path: src/Database/Statement/SqlserverStatement.php
  267. -
  268. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  269. count: 1
  270. path: src/ORM/Entity.php
  271. -
  272. message: "#^Result of && is always false\\.$#"
  273. count: 2
  274. path: src/Datasource/QueryCacher.php
  275. -
  276. message: "#^Cannot unset offset 'args' on array\\('path' \\=\\> string, 'reference' \\=\\> mixed\\)\\.$#"
  277. count: 1
  278. path: src/Error/Debugger.php
  279. -
  280. message: "#^Cannot unset offset 'object' on array\\('path' \\=\\> string, 'reference' \\=\\> mixed\\)\\.$#"
  281. count: 1
  282. path: src/Error/Debugger.php
  283. -
  284. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  285. count: 1
  286. path: src/Event/EventManager.php
  287. -
  288. message: "#^Method Cake\\\\Event\\\\EventManager\\:\\:instance\\(\\) should return static\\(Cake\\\\Event\\\\EventManager\\) but returns Cake\\\\Event\\\\EventManager\\.$#"
  289. count: 1
  290. path: src/Event/EventManager.php
  291. -
  292. message: "#^Call to function is_int\\(\\) with string\\|false will always evaluate to false\\.$#"
  293. count: 1
  294. path: src/Filesystem/File.php
  295. -
  296. message: "#^Parameter \\#1 \\$it of class RegexIterator constructor expects Iterator, Traversable given\\.$#"
  297. count: 1
  298. path: src/Filesystem/Filesystem.php
  299. -
  300. message: "#^Parameter \\#1 \\$it of class CallbackFilterIterator constructor expects Iterator, Traversable given\\.$#"
  301. count: 1
  302. path: src/Filesystem/Filesystem.php
  303. -
  304. message: "#^Constructor of class Cake\\\\Http\\\\Client\\\\Auth\\\\Digest has an unused parameter \\$options\\.$#"
  305. count: 1
  306. path: src/Http/Client/Auth/Digest.php
  307. -
  308. message: "#^Property Cake\\\\Http\\\\Cookie\\\\Cookie\\:\\:\\$sameSite \\(Cake\\\\Http\\\\Cookie\\\\CookieInterface\\) does not accept string\\.$#"
  309. count: 1
  310. path: src/Http/Cookie/Cookie.php
  311. -
  312. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  313. count: 1
  314. path: src/Http/Cookie/Cookie.php
  315. -
  316. message: "#^Call to an undefined method DateTimeInterface\\:\\:setTimezone\\(\\)\\.$#"
  317. count: 1
  318. path: src/Http/Cookie/Cookie.php
  319. -
  320. message: "#^Method Cake\\\\Http\\\\Cookie\\\\Cookie\\:\\:createFromHeaderString\\(\\) should return static\\(Cake\\\\Http\\\\Cookie\\\\Cookie\\) but returns Cake\\\\Http\\\\Cookie\\\\Cookie\\.$#"
  321. count: 1
  322. path: src/Http/Cookie/Cookie.php
  323. -
  324. message: "#^If condition is always true\\.$#"
  325. count: 1
  326. path: src/Http/Cookie/Cookie.php
  327. -
  328. message: "#^Parameter \\#2 \\.\\.\\.\\$args of function sprintf expects bool\\|float\\|int\\|string\\|null, Cake\\\\Http\\\\Cookie\\\\CookieInterface given\\.$#"
  329. count: 1
  330. path: src/Http/Cookie/Cookie.php
  331. -
  332. message: "#^Method Cake\\\\Http\\\\Cookie\\\\Cookie\\:\\:getSameSite\\(\\) should return string\\|null but returns Cake\\\\Http\\\\Cookie\\\\CookieInterface\\.$#"
  333. count: 1
  334. path: src/Http/Cookie/Cookie.php
  335. -
  336. message: "#^Property Cake\\\\Http\\\\Cookie\\\\Cookie\\:\\:\\$sameSite \\(Cake\\\\Http\\\\Cookie\\\\CookieInterface\\) does not accept string\\|null\\.$#"
  337. count: 1
  338. path: src/Http/Cookie/Cookie.php
  339. -
  340. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  341. count: 2
  342. path: src/Http/Cookie/CookieCollection.php
  343. -
  344. message: "#^Method Cake\\\\Http\\\\Response\\:\\:withDisabledCache\\(\\) should return static\\(Cake\\\\Http\\\\Response\\) but returns Cake\\\\Http\\\\Response\\.$#"
  345. count: 1
  346. path: src/Http/Response.php
  347. -
  348. message: "#^Method Cake\\\\Http\\\\Response\\:\\:withCache\\(\\) should return static\\(Cake\\\\Http\\\\Response\\) but returns Cake\\\\Http\\\\Response\\.$#"
  349. count: 1
  350. path: src/Http/Response.php
  351. -
  352. message: "#^Method Cake\\\\Http\\\\Response\\:\\:withNotModified\\(\\) should return static\\(Cake\\\\Http\\\\Response\\) but returns Cake\\\\Http\\\\Response\\.$#"
  353. count: 1
  354. path: src/Http/Response.php
  355. -
  356. message: "#^Call to an undefined method DateTimeInterface\\:\\:setTimezone\\(\\)\\.$#"
  357. count: 1
  358. path: src/Http/Response.php
  359. -
  360. message: "#^Method Cake\\\\Http\\\\Response\\:\\:withFile\\(\\) should return static\\(Cake\\\\Http\\\\Response\\) but returns Cake\\\\Http\\\\Response\\.$#"
  361. count: 1
  362. path: src/Http/Response.php
  363. -
  364. message: "#^Access to an undefined property Psr\\\\Http\\\\Message\\\\UriInterface\\:\\:\\$webroot\\.$#"
  365. count: 3
  366. path: src/Http/ServerRequestFactory.php
  367. -
  368. message: "#^Access to an undefined property Psr\\\\Http\\\\Message\\\\UriInterface\\:\\:\\$base\\.$#"
  369. count: 2
  370. path: src/Http/ServerRequestFactory.php
  371. -
  372. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  373. count: 1
  374. path: src/Http/Session.php
  375. -
  376. message: "#^Variable \\$_SESSION in isset\\(\\) always exists and is not nullable\\.$#"
  377. count: 2
  378. path: src/Http/Session.php
  379. -
  380. message: "#^Call to an undefined method Cake\\\\Chronos\\\\DifferenceFormatterInterface\\:\\:dateAgoInWords\\(\\)\\.$#"
  381. count: 1
  382. path: src/I18n/Date.php
  383. -
  384. message: "#^Call to function is_subclass_of\\(\\) with class\\-string\\<static\\(Cake\\\\I18n\\\\Date\\)\\> and 'Cake\\\\\\\\Chronos\\\\\\\\Date' will always evaluate to false\\.$#"
  385. count: 1
  386. path: src/I18n/Date.php
  387. -
  388. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  389. count: 1
  390. path: src/I18n/Date.php
  391. -
  392. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  393. count: 1
  394. path: src/I18n/Date.php
  395. -
  396. message: "#^Result of \\|\\| is always true\\.$#"
  397. count: 1
  398. path: src/I18n/FrozenDate.php
  399. -
  400. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  401. count: 1
  402. path: src/I18n/FrozenDate.php
  403. -
  404. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  405. count: 1
  406. path: src/I18n/FrozenDate.php
  407. -
  408. message: "#^Call to an undefined method Cake\\\\Chronos\\\\DifferenceFormatterInterface\\:\\:dateAgoInWords\\(\\)\\.$#"
  409. count: 1
  410. path: src/I18n/FrozenDate.php
  411. -
  412. message: "#^Call to function is_subclass_of\\(\\) with class\\-string\\<static\\(Cake\\\\I18n\\\\FrozenTime\\)\\> and 'Cake\\\\\\\\Chronos\\\\\\\\Date' will always evaluate to false\\.$#"
  413. count: 1
  414. path: src/I18n/FrozenTime.php
  415. -
  416. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  417. count: 1
  418. path: src/I18n/FrozenTime.php
  419. -
  420. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  421. count: 1
  422. path: src/I18n/FrozenTime.php
  423. -
  424. message: "#^Call to an undefined method Cake\\\\Chronos\\\\DifferenceFormatterInterface\\:\\:timeAgoInWords\\(\\)\\.$#"
  425. count: 1
  426. path: src/I18n/FrozenTime.php
  427. -
  428. message: "#^Call to function is_subclass_of\\(\\) with class\\-string\\<static\\(Cake\\\\I18n\\\\Time\\)\\> and 'Cake\\\\\\\\Chronos\\\\\\\\Date' will always evaluate to false\\.$#"
  429. count: 1
  430. path: src/I18n/Time.php
  431. -
  432. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  433. count: 1
  434. path: src/I18n/Time.php
  435. -
  436. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  437. count: 1
  438. path: src/I18n/Time.php
  439. -
  440. message: "#^Call to an undefined method Cake\\\\Chronos\\\\DifferenceFormatterInterface\\:\\:timeAgoInWords\\(\\)\\.$#"
  441. count: 1
  442. path: src/I18n/Time.php
  443. -
  444. message: "#^PHPDoc tag @var has invalid value \\(\\\\Psr\\\\SimpleCache\\\\CacheInterface&\\\\Cake\\\\Cache\\\\CacheEngineInterface\\|null\\)\\: Unexpected token \"\\|\", expected TOKEN_OTHER at offset 175$#"
  445. count: 1
  446. path: src/I18n/TranslatorRegistry.php
  447. -
  448. message: "#^Method Cake\\\\Mailer\\\\Email\\:\\:deliver\\(\\) should return static\\(Cake\\\\Mailer\\\\Email\\) but returns Cake\\\\Mailer\\\\Email\\.$#"
  449. count: 1
  450. path: src/Mailer/Email.php
  451. -
  452. message: "#^Call to sprintf contains 0 placeholders, 1 value given\\.$#"
  453. count: 1
  454. path: src/Mailer/Message.php
  455. -
  456. message: "#^Method Cake\\\\Mailer\\\\Renderer\\:\\:render\\(\\) should return array\\(\\)\\|array\\('html' \\=\\> string, 'text' \\=\\> string\\) but returns array\\<string, string\\>\\.$#"
  457. count: 2
  458. path: src/Mailer/Renderer.php
  459. -
  460. message: "#^Access to an undefined property Cake\\\\Mailer\\\\Renderer\\:\\:\\$request\\.$#"
  461. count: 1
  462. path: src/Mailer/Renderer.php
  463. -
  464. message: "#^Access to an undefined property Cake\\\\Mailer\\\\Renderer\\:\\:\\$response\\.$#"
  465. count: 1
  466. path: src/Mailer/Renderer.php
  467. -
  468. message: "#^Strict comparison using \\=\\=\\= between int and true will always evaluate to false\\.$#"
  469. count: 1
  470. path: src/Network/Socket.php
  471. -
  472. message: "#^Parameter \\#2 \\$callback of function array_filter expects callable\\(mixed, mixed\\)\\: bool, 'strlen' given\\.$#"
  473. count: 1
  474. path: src/ORM/Association/BelongsToMany.php
  475. -
  476. message: "#^Call to an undefined method Cake\\\\Collection\\\\CollectionInterface\\:\\:printer\\(\\)\\.$#"
  477. count: 1
  478. path: src/ORM/Behavior/TreeBehavior.php
  479. -
  480. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  481. count: 2
  482. path: src/ORM/EagerLoader.php
  483. -
  484. message: "#^Parameter \\#1 \\$assoc of method Cake\\\\ORM\\\\Marshaller\\:\\:_belongsToMany\\(\\) expects Cake\\\\ORM\\\\Association\\\\BelongsToMany, Cake\\\\ORM\\\\Association given\\.$#"
  485. count: 1
  486. path: src/ORM/Marshaller.php
  487. -
  488. message: "#^Parameter \\#2 \\$callback of function array_filter expects callable\\(mixed, mixed\\)\\: bool, 'strlen' given\\.$#"
  489. count: 1
  490. path: src/ORM/Marshaller.php
  491. -
  492. message: "#^Parameter \\#2 \\$assoc of method Cake\\\\ORM\\\\Marshaller\\:\\:_mergeBelongsToMany\\(\\) expects Cake\\\\ORM\\\\Association\\\\BelongsToMany, Cake\\\\ORM\\\\Association given\\.$#"
  493. count: 1
  494. path: src/ORM/Marshaller.php
  495. -
  496. message: "#^Parameter \\#1 \\$entities of method Cake\\\\ORM\\\\Marshaller\\:\\:mergeMany\\(\\) expects iterable\\<Cake\\\\Datasource\\\\EntityInterface\\>&Traversable\\<mixed, Cake\\\\Datasource\\\\EntityInterface\\>, array\\<Cake\\\\Datasource\\\\EntityInterface\\> given\\.$#"
  497. count: 3
  498. path: src/ORM/Marshaller.php
  499. -
  500. message: "#^Parameter \\#1 \\$table of method Cake\\\\ORM\\\\Query\\:\\:addDefaultTypes\\(\\) expects Cake\\\\ORM\\\\Table, Cake\\\\Datasource\\\\RepositoryInterface given\\.$#"
  501. count: 1
  502. path: src/ORM/Query.php
  503. -
  504. message: "#^Parameter \\#1 \\$table of method Cake\\\\ORM\\\\Query\\:\\:_addAssociationsToTypeMap\\(\\) expects Cake\\\\ORM\\\\Table, Cake\\\\Datasource\\\\RepositoryInterface given\\.$#"
  505. count: 5
  506. path: src/ORM/Query.php
  507. -
  508. message: "#^Method Cake\\\\ORM\\\\Query\\:\\:find\\(\\) should return static\\(Cake\\\\ORM\\\\Query\\) but returns Cake\\\\ORM\\\\Query\\.$#"
  509. count: 1
  510. path: src/ORM/Query.php
  511. -
  512. message: "#^Parameter \\#2 \\$callback of function array_filter expects callable\\(mixed, mixed\\)\\: bool, 'strlen' given\\.$#"
  513. count: 1
  514. path: src/ORM/Rule/IsUnique.php
  515. -
  516. message: "#^Result of && is always false\\.$#"
  517. count: 1
  518. path: src/ORM/Rule/LinkConstraint.php
  519. -
  520. message: "#^Negated boolean expression is always true\\.$#"
  521. count: 1
  522. path: src/ORM/Table.php
  523. -
  524. message: "#^Variable \\$entities in PHPDoc tag @var does not match any variable in the foreach loop\\: \\$key, \\$entity$#"
  525. count: 1
  526. path: src/ORM/Table.php
  527. -
  528. message: "#^Parameter \\#1 \\$request of static method Cake\\\\Routing\\\\Router\\:\\:setRequest\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
  529. count: 2
  530. path: src/Routing/Middleware/RoutingMiddleware.php
  531. -
  532. message: "#^Parameter \\#1 \\$request of static method Cake\\\\Routing\\\\Router\\:\\:parseRequest\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
  533. count: 1
  534. path: src/Routing/Middleware/RoutingMiddleware.php
  535. -
  536. message: "#^Result of && is always false\\.$#"
  537. count: 1
  538. path: src/Routing/Route/EntityRoute.php
  539. -
  540. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  541. count: 1
  542. path: src/Routing/RouteBuilder.php
  543. -
  544. message: "#^Property Cake\\\\TestSuite\\\\ConsoleIntegrationTestCase\\:\\:\\$_out \\(Cake\\\\TestSuite\\\\Stub\\\\ConsoleOutput\\) does not accept null\\.$#"
  545. count: 1
  546. path: src/TestSuite/ConsoleIntegrationTestCase.php
  547. -
  548. message: "#^Property Cake\\\\TestSuite\\\\ConsoleIntegrationTestCase\\:\\:\\$_err \\(Cake\\\\TestSuite\\\\Stub\\\\ConsoleOutput\\) does not accept null\\.$#"
  549. count: 1
  550. path: src/TestSuite/ConsoleIntegrationTestCase.php
  551. -
  552. message: "#^Property Cake\\\\TestSuite\\\\ConsoleIntegrationTestCase\\:\\:\\$_in \\(Cake\\\\Console\\\\ConsoleInput\\) does not accept null\\.$#"
  553. count: 1
  554. path: src/TestSuite/ConsoleIntegrationTestCase.php
  555. -
  556. message: "#^Variable \\$event in PHPDoc tag @var does not match assigned variable \\$events\\.$#"
  557. count: 1
  558. path: src/TestSuite/Constraint/EventFiredWith.php
  559. -
  560. message: "#^Access to an undefined property PHPUnit\\\\Framework\\\\Test\\:\\:\\$fixtureManager\\.$#"
  561. count: 1
  562. path: src/TestSuite/Fixture/FixtureInjector.php
  563. -
  564. message: "#^Variable \\$fixtures in PHPDoc tag @var does not match any variable in the foreach loop\\: \\$fixture$#"
  565. count: 1
  566. path: src/TestSuite/Fixture/FixtureManager.php
  567. -
  568. message: "#^Call to an undefined method Cake\\\\Database\\\\ConstraintsInterface\\:\\:sourceName\\(\\)\\.$#"
  569. count: 1
  570. path: src/TestSuite/Fixture/FixtureManager.php
  571. -
  572. message: "#^Parameter \\#1 \\$connection of method Cake\\\\Database\\\\Schema\\\\SqlGeneratorInterface\\:\\:createSql\\(\\) expects Cake\\\\Database\\\\Connection, Cake\\\\Datasource\\\\ConnectionInterface given\\.$#"
  573. count: 1
  574. path: src/TestSuite/Fixture/TestFixture.php
  575. -
  576. message: "#^Parameter \\#1 \\$connection of method Cake\\\\Database\\\\Schema\\\\SqlGeneratorInterface\\:\\:dropSql\\(\\) expects Cake\\\\Database\\\\Connection, Cake\\\\Datasource\\\\ConnectionInterface given\\.$#"
  577. count: 1
  578. path: src/TestSuite/Fixture/TestFixture.php
  579. -
  580. message: "#^Parameter \\#1 \\$connection of method Cake\\\\Database\\\\Schema\\\\SqlGeneratorInterface\\:\\:addConstraintSql\\(\\) expects Cake\\\\Database\\\\Connection, Cake\\\\Datasource\\\\ConnectionInterface given\\.$#"
  581. count: 1
  582. path: src/TestSuite/Fixture/TestFixture.php
  583. -
  584. message: "#^Parameter \\#1 \\$connection of method Cake\\\\Database\\\\Schema\\\\SqlGeneratorInterface\\:\\:dropConstraintSql\\(\\) expects Cake\\\\Database\\\\Connection, Cake\\\\Datasource\\\\ConnectionInterface given\\.$#"
  585. count: 1
  586. path: src/TestSuite/Fixture/TestFixture.php
  587. -
  588. message: "#^Parameter \\#1 \\$connection of method Cake\\\\Database\\\\Schema\\\\SqlGeneratorInterface\\:\\:truncateSql\\(\\) expects Cake\\\\Database\\\\Connection, Cake\\\\Datasource\\\\ConnectionInterface given\\.$#"
  589. count: 1
  590. path: src/TestSuite/Fixture/TestFixture.php
  591. -
  592. message: "#^Property Cake\\\\TestSuite\\\\IntegrationTestCase\\:\\:\\$_response \\(Psr\\\\Http\\\\Message\\\\ResponseInterface\\) does not accept null\\.$#"
  593. count: 1
  594. path: src/TestSuite/IntegrationTestCase.php
  595. -
  596. message: "#^Property Cake\\\\TestSuite\\\\IntegrationTestCase\\:\\:\\$_controller \\(Cake\\\\Controller\\\\Controller\\) does not accept null\\.$#"
  597. count: 1
  598. path: src/TestSuite/IntegrationTestCase.php
  599. -
  600. message: "#^Property Cake\\\\TestSuite\\\\IntegrationTestCase\\:\\:\\$_viewName \\(string\\) does not accept null\\.$#"
  601. count: 1
  602. path: src/TestSuite/IntegrationTestCase.php
  603. -
  604. message: "#^Property Cake\\\\TestSuite\\\\IntegrationTestCase\\:\\:\\$_layoutName \\(string\\) does not accept null\\.$#"
  605. count: 1
  606. path: src/TestSuite/IntegrationTestCase.php
  607. -
  608. message: "#^Property Cake\\\\TestSuite\\\\IntegrationTestCase\\:\\:\\$_requestSession \\(Cake\\\\Http\\\\Session\\) does not accept null\\.$#"
  609. count: 1
  610. path: src/TestSuite/IntegrationTestCase.php
  611. -
  612. message: "#^Negated boolean expression is always false\\.$#"
  613. count: 1
  614. path: src/TestSuite/IntegrationTestCase.php
  615. -
  616. message: "#^Ternary operator condition is always true\\.$#"
  617. count: 1
  618. path: src/TestSuite/IntegrationTestCase.php
  619. -
  620. message: "#^Parameter \\#1 \\$response of class Cake\\\\TestSuite\\\\Constraint\\\\Response\\\\CookieEquals constructor expects Cake\\\\Http\\\\Response\\|null, Psr\\\\Http\\\\Message\\\\ResponseInterface given\\.$#"
  621. count: 1
  622. path: src/TestSuite/IntegrationTestCase.php
  623. -
  624. message: "#^Parameter \\#1 \\$response of class Cake\\\\TestSuite\\\\Constraint\\\\Response\\\\CookieEncryptedEquals constructor expects Cake\\\\Http\\\\Response\\|null, Psr\\\\Http\\\\Message\\\\ResponseInterface given\\.$#"
  625. count: 1
  626. path: src/TestSuite/IntegrationTestCase.php
  627. -
  628. message: "#^Variable \\$tags in PHPDoc tag @var does not match any variable in the foreach loop\\: \\$tag, \\$attributes$#"
  629. count: 1
  630. path: src/TestSuite/TestCase.php
  631. -
  632. message: "#^Result of \\|\\| is always true\\.$#"
  633. count: 2
  634. path: src/Utility/Hash.php
  635. -
  636. message: "#^Variable \\$tempData in PHPDoc tag @var does not match any variable in the foreach loop\\: \\$key, \\$hashVal$#"
  637. count: 1
  638. path: src/Utility/Text.php
  639. -
  640. message: "#^Return type \\(array\\<string, array\\|string\\>\\) of method Cake\\\\View\\\\Exception\\\\MissingCellTemplateException\\:\\:getAttributes\\(\\) should be compatible with return type \\(array\\<string, array\\|string\\>\\) of method Cake\\\\View\\\\Exception\\\\MissingTemplateException\\:\\:getAttributes\\(\\)$#"
  641. count: 1
  642. path: src/View/Exception/MissingCellTemplateException.php
  643. -
  644. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  645. count: 1
  646. path: src/View/Form/ContextFactory.php
  647. -
  648. message: "#^Call to an undefined method Cake\\\\ORM\\\\Association\\:\\:junction\\(\\)\\.$#"
  649. count: 1
  650. path: src/View/Form/EntityContext.php
  651. -
  652. message: "#^Constructor of class Cake\\\\View\\\\Form\\\\NullContext has an unused parameter \\$context\\.$#"
  653. count: 1
  654. path: src/View/Form/NullContext.php
  655. -
  656. message: "#^Method Cake\\\\View\\\\Helper\\:\\:__get\\(\\) should return Cake\\\\View\\\\Helper\\|null but return statement is missing\\.$#"
  657. count: 1
  658. path: src/View/Helper.php
  659. -
  660. message: "#^Offset 'debug' does not exist on array\\('fields' \\=\\> string, 'unlocked' \\=\\> string\\)\\.$#"
  661. count: 1
  662. path: src/View/Helper/FormHelper.php
  663. -
  664. message: "#^Call to an undefined method DateTimeInterface\\:\\:setTimezone\\(\\)\\.$#"
  665. count: 1
  666. path: src/View/Helper/TimeHelper.php
  667. -
  668. message: "#^Parameter \\#3 \\$options of method Cake\\\\View\\\\View\\:\\:_elementCache\\(\\) expects array\\('cache' \\=\\> array\\('key' \\=\\> string, 'config' \\=\\> string\\)\\|string, \\?'callbacks' \\=\\> mixed, \\?'plugin' \\=\\> mixed\\), array given\\.$#"
  669. count: 1
  670. path: src/View/View.php
  671. -
  672. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  673. count: 1
  674. path: src/View/Widget/SelectBoxWidget.php
  675. -
  676. message: "#^Class Psy\\\\Shell not found\\.$#"
  677. count: 1
  678. path: src/basics.php