psalm-baseline.xml 14 KB

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