psalm-baseline.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <files psalm-version="4.9.3@4c262932602b9bbab5020863d1eb22d49de0dbf4">
  3. <file src="config/replacements.php">
  4. <DuplicateArrayKey occurrences="3">
  5. <code>'ZendAcl' =&gt; 'LaminasAcl'</code>
  6. <code>'ZendRbac' =&gt; 'LaminasRbac'</code>
  7. <code>'ZendRouter' =&gt; 'LaminasRouter'</code>
  8. </DuplicateArrayKey>
  9. </file>
  10. <file src="src/Autoloader.php">
  11. <MissingClosureParamType occurrences="2">
  12. <code>$class</code>
  13. <code>$class</code>
  14. </MissingClosureParamType>
  15. <MissingReturnType occurrences="1">
  16. <code>load</code>
  17. </MissingReturnType>
  18. <MixedArgument occurrences="7">
  19. <code>$class</code>
  20. <code>$class</code>
  21. <code>$class</code>
  22. <code>$class</code>
  23. <code>$class</code>
  24. <code>$class</code>
  25. <code>$class</code>
  26. </MixedArgument>
  27. <MixedArgumentTypeCoercion occurrences="2"/>
  28. <MixedArrayOffset occurrences="1">
  29. <code>$loaded[$class]</code>
  30. </MixedArrayOffset>
  31. <MixedOperand occurrences="2">
  32. <code>$namespaces[$check]</code>
  33. <code>$namespaces[$check]</code>
  34. </MixedOperand>
  35. </file>
  36. <file src="src/ConfigPostProcessor.php">
  37. <InvalidArgument occurrences="1">
  38. <code>$keys</code>
  39. </InvalidArgument>
  40. <MissingClosureParamType occurrences="4">
  41. <code>$value</code>
  42. <code>$value</code>
  43. <code>$value</code>
  44. <code>$value</code>
  45. </MissingClosureParamType>
  46. <MissingClosureReturnType occurrences="4">
  47. <code>function ($value) {</code>
  48. <code>function ($value) {</code>
  49. <code>function ($value, array $keys) {</code>
  50. <code>function ($value, array $keys) {</code>
  51. </MissingClosureReturnType>
  52. <MissingReturnType occurrences="3">
  53. <code>replaceDependencyConfiguration</code>
  54. <code>replaceDependencyFactories</code>
  55. <code>replaceDependencyServices</code>
  56. </MissingReturnType>
  57. <MixedArgument occurrences="5">
  58. <code>$config</code>
  59. <code>$newKey</code>
  60. <code>$newKey</code>
  61. <code>$newKey</code>
  62. <code>$target</code>
  63. </MixedArgument>
  64. <MixedArgumentTypeCoercion occurrences="1">
  65. <code>[$key]</code>
  66. </MixedArgumentTypeCoercion>
  67. <MixedArrayAssignment occurrences="4">
  68. <code>$config[$key]</code>
  69. <code>$config['aliases'][$alias]</code>
  70. <code>$config['aliases'][$service]</code>
  71. <code>$config['aliases'][$service]</code>
  72. </MixedArrayAssignment>
  73. <MixedArrayOffset occurrences="7">
  74. <code>$aliases[$name]</code>
  75. <code>$config[$key]</code>
  76. <code>$keys[$key]</code>
  77. <code>$rewritten[$newKey]</code>
  78. <code>$rewritten[$newKey]</code>
  79. <code>$rewritten[$newKey]</code>
  80. <code>$this-&gt;exactReplacements[$value]</code>
  81. </MixedArrayOffset>
  82. <MixedArrayTypeCoercion occurrences="1">
  83. <code>$aliases[$name]</code>
  84. </MixedArrayTypeCoercion>
  85. <MixedAssignment occurrences="26">
  86. <code>$a[$key]</code>
  87. <code>$a[$key]</code>
  88. <code>$a[]</code>
  89. <code>$config</code>
  90. <code>$config</code>
  91. <code>$config[$key]</code>
  92. <code>$config['factories'][$replacedService]</code>
  93. <code>$config['services'][$replacedService]</code>
  94. <code>$data</code>
  95. <code>$factory</code>
  96. <code>$factory</code>
  97. <code>$key</code>
  98. <code>$key</code>
  99. <code>$name</code>
  100. <code>$newKey</code>
  101. <code>$newValue</code>
  102. <code>$notIn[]</code>
  103. <code>$result</code>
  104. <code>$rewritten[$key]</code>
  105. <code>$rewritten[$newKey]</code>
  106. <code>$rewritten[$newKey][]</code>
  107. <code>$serviceInstance</code>
  108. <code>$serviceInstance</code>
  109. <code>$target</code>
  110. <code>$value</code>
  111. <code>$value</code>
  112. </MixedAssignment>
  113. </file>
  114. <file src="src/Module.php">
  115. <MissingReturnType occurrences="2">
  116. <code>init</code>
  117. <code>onMergeConfig</code>
  118. </MissingReturnType>
  119. <UndefinedDocblockClass occurrences="2">
  120. <code>ModuleEvent</code>
  121. <code>ModuleManager</code>
  122. </UndefinedDocblockClass>
  123. </file>
  124. <file src="src/Replacements.php">
  125. <MixedArgument occurrences="2">
  126. <code>$replacement</code>
  127. <code>$replacement</code>
  128. </MixedArgument>
  129. <MixedArgumentTypeCoercion occurrences="3">
  130. <code>$original</code>
  131. <code>$original</code>
  132. <code>$original</code>
  133. </MixedArgumentTypeCoercion>
  134. <MixedAssignment occurrences="1">
  135. <code>$replacement</code>
  136. </MixedAssignment>
  137. <MixedPropertyTypeCoercion occurrences="3">
  138. <code>$this-&gt;replacements</code>
  139. <code>$this-&gt;replacements</code>
  140. </MixedPropertyTypeCoercion>
  141. </file>
  142. <file src="test/AutoloaderTest.php">
  143. <InvalidStringClass occurrences="1">
  144. <code>new $legacy()</code>
  145. </InvalidStringClass>
  146. <MissingReturnType occurrences="3">
  147. <code>testLegacyClassIsAliasToLaminas</code>
  148. <code>testReverseAliasCreated</code>
  149. <code>testTypeHint</code>
  150. </MissingReturnType>
  151. <PossiblyInvalidArgument occurrences="1">
  152. <code>testLegacyClassIsAliasToLaminas</code>
  153. </PossiblyInvalidArgument>
  154. </file>
  155. <file src="test/ConfigPostProcessorTest.php">
  156. <MissingReturnType occurrences="4">
  157. <code>invalidServiceManagerConfiguration</code>
  158. <code>testRewritesNestedKeys</code>
  159. <code>testServiceManagerServiceInstancesCanBeHandled</code>
  160. <code>testWillSkipInvalidConfigurations</code>
  161. </MissingReturnType>
  162. <MixedArgument occurrences="1">
  163. <code>$config</code>
  164. </MixedArgument>
  165. <MixedAssignment occurrences="2">
  166. <code>$config</code>
  167. <code>$expected</code>
  168. </MixedAssignment>
  169. <MixedInferredReturnType occurrences="1">
  170. <code>iterable</code>
  171. </MixedInferredReturnType>
  172. <UnresolvableInclude occurrences="2">
  173. <code>require $configLocation</code>
  174. <code>require $expectedResultLocation</code>
  175. </UnresolvableInclude>
  176. </file>
  177. <file src="test/ModuleTest.php">
  178. <InvalidArgument occurrences="2">
  179. <code>$event</code>
  180. <code>$moduleManager</code>
  181. </InvalidArgument>
  182. <MissingReturnType occurrences="2">
  183. <code>testInitRegistersListenerWithEventManager</code>
  184. <code>testOnMergeConfigProcessesAndReplacesConfigurationPulledFromListener</code>
  185. </MissingReturnType>
  186. <MixedArgument occurrences="1">
  187. <code>$config</code>
  188. </MixedArgument>
  189. <MixedAssignment occurrences="2">
  190. <code>$config</code>
  191. <code>$expected</code>
  192. </MixedAssignment>
  193. <MixedInferredReturnType occurrences="1">
  194. <code>iterable</code>
  195. </MixedInferredReturnType>
  196. <UnresolvableInclude occurrences="2">
  197. <code>require $configFile</code>
  198. <code>require $expectationsFile</code>
  199. </UnresolvableInclude>
  200. </file>
  201. <file src="test/ReplacementsTest.php">
  202. <MissingReturnType occurrences="1">
  203. <code>testEdgeCases</code>
  204. </MissingReturnType>
  205. <MixedInferredReturnType occurrences="1">
  206. <code>iterable</code>
  207. </MixedInferredReturnType>
  208. </file>
  209. <file src="test/TestAsset/ConfigPostProcessor/AbstractFactories.php">
  210. <UndefinedClass occurrences="4">
  211. <code>ConfigAbstractFactory</code>
  212. <code>ConfigAbstractFactory</code>
  213. <code>InvokableFactory</code>
  214. <code>InvokableFactory</code>
  215. </UndefinedClass>
  216. </file>
  217. <file src="test/TestAsset/ConfigPostProcessor/CyclicalAliasing.php">
  218. <DuplicateArrayKey occurrences="1">
  219. <code>'Zend\Db\Adapter\Adapter' =&gt; 'ZF\Apigility\DbConnectedAdapter'</code>
  220. </DuplicateArrayKey>
  221. </file>
  222. <file src="test/TestAsset/ConfigPostProcessor/ExpressiveSlimRouterConfig.php">
  223. <UndefinedClass occurrences="2">
  224. <code>Factory\SlimRouterFactory</code>
  225. <code>RouterInterface</code>
  226. </UndefinedClass>
  227. </file>
  228. <file src="test/TestAsset/ConfigPostProcessor/LazyServices.php">
  229. <UndefinedClass occurrences="1">
  230. <code>LazyServiceFactory</code>
  231. </UndefinedClass>
  232. </file>
  233. <file src="test/TestAsset/ConfigPostProcessor/MwopNetAppConfig.php">
  234. <UndefinedClass occurrences="42">
  235. <code>CacheItemPoolInterface</code>
  236. <code>ConfigFactory</code>
  237. <code>ConfigFactory</code>
  238. <code>ConfigFactory</code>
  239. <code>ConfigFactory</code>
  240. <code>ConfigFactory</code>
  241. <code>ConfigFactory</code>
  242. <code>Csp</code>
  243. <code>DisplayPostHandler</code>
  244. <code>Engine</code>
  245. <code>EventDispatcherInterface</code>
  246. <code>Factory\CachePoolFactory</code>
  247. <code>Factory\EventDispatcherFactory</code>
  248. <code>Factory\MailTransport</code>
  249. <code>Factory\PlatesFunctionsDelegator</code>
  250. <code>FeedReaderHttpClientInterface</code>
  251. <code>Feed\HttpPlugClientFactory</code>
  252. <code>Handler\ComicsPageHandler</code>
  253. <code>Handler\ComicsPageHandlerFactory</code>
  254. <code>Handler\HomePageHandler</code>
  255. <code>Handler\HomePageHandlerFactory</code>
  256. <code>Handler\PageHandlerFactory</code>
  257. <code>Handler\PageHandlerFactory</code>
  258. <code>Handler\ResumePageHandler</code>
  259. <code>Handler\ResumePageHandler</code>
  260. <code>Middleware\ContentSecurityPolicyMiddlewareFactory</code>
  261. <code>Middleware\DisplayBlogPostHandlerDelegator</code>
  262. <code>Middleware\RedirectAmpPagesMiddleware</code>
  263. <code>Middleware\RedirectAmpPagesMiddlewareFactory</code>
  264. <code>Middleware\RedirectsMiddleware</code>
  265. <code>Middleware\RedirectsMiddleware</code>
  266. <code>Middleware\XClacksOverheadMiddleware</code>
  267. <code>Middleware\XClacksOverheadMiddleware</code>
  268. <code>Middleware\XPoweredByMiddleware</code>
  269. <code>Middleware\XPoweredByMiddleware</code>
  270. <code>RequestFactory</code>
  271. <code>RequestFactoryInterface</code>
  272. <code>ResponseFactory</code>
  273. <code>ResponseFactoryInterface</code>
  274. <code>SessionCachePool</code>
  275. <code>SessionCachePool</code>
  276. <code>SessionCachePoolFactory</code>
  277. </UndefinedClass>
  278. </file>
  279. <file src="test/TestAsset/Replacements/TestClass.php">
  280. <UndefinedClass occurrences="1">
  281. <code>\Zend\Expressive\Router</code>
  282. </UndefinedClass>
  283. </file>
  284. <file src="test/TestAsset/Replacements/ZFOAuth2Client.php">
  285. <UndefinedClass occurrences="1">
  286. <code>OAuth2Client</code>
  287. </UndefinedClass>
  288. </file>
  289. <file src="test/TestAsset/classes/ConfigListener.php">
  290. <MissingReturnType occurrences="1">
  291. <code>setMergedConfig</code>
  292. </MissingReturnType>
  293. </file>
  294. <file src="test/TestAsset/classes/EventManager.php">
  295. <InvalidArgument occurrences="1">
  296. <code>$listener</code>
  297. </InvalidArgument>
  298. <MissingPropertyType occurrences="1">
  299. <code>$listeners</code>
  300. </MissingPropertyType>
  301. <MissingReturnType occurrences="1">
  302. <code>attach</code>
  303. </MissingReturnType>
  304. <MixedArgument occurrences="1">
  305. <code>$this-&gt;listeners[$eventName]</code>
  306. </MixedArgument>
  307. <MixedArrayAccess occurrences="1">
  308. <code>$this-&gt;listeners[$eventName]</code>
  309. </MixedArrayAccess>
  310. <MixedArrayAssignment occurrences="1">
  311. <code>$this-&gt;listeners[$eventName]</code>
  312. </MixedArrayAssignment>
  313. <MixedInferredReturnType occurrences="1">
  314. <code>array</code>
  315. </MixedInferredReturnType>
  316. <MixedReturnStatement occurrences="1">
  317. <code>$this-&gt;listeners</code>
  318. </MixedReturnStatement>
  319. </file>
  320. <file src="test/TestAsset/classes/ModuleEvent.php">
  321. <MissingPropertyType occurrences="1">
  322. <code>$listener</code>
  323. </MissingPropertyType>
  324. <MixedInferredReturnType occurrences="1">
  325. <code>ConfigListener</code>
  326. </MixedInferredReturnType>
  327. <MixedReturnStatement occurrences="1">
  328. <code>$this-&gt;listener</code>
  329. </MixedReturnStatement>
  330. </file>
  331. <file src="test/TestAsset/classes/ModuleManager.php">
  332. <MixedInferredReturnType occurrences="1">
  333. <code>EventManager</code>
  334. </MixedInferredReturnType>
  335. <MixedReturnStatement occurrences="1">
  336. <code>$this-&gt;eventManager</code>
  337. </MixedReturnStatement>
  338. <UndefinedThisPropertyAssignment occurrences="1">
  339. <code>$this-&gt;eventManager</code>
  340. </UndefinedThisPropertyAssignment>
  341. <UndefinedThisPropertyFetch occurrences="1">
  342. <code>$this-&gt;eventManager</code>
  343. </UndefinedThisPropertyFetch>
  344. </file>
  345. </files>