psalm-baseline-ocp.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <files psalm-version="4.2.1@ea9cb72143b77e7520c52fa37290bd8d8bc88fd9">
  3. <file src="lib/private/legacy/OC_Image.php">
  4. <ImplementedReturnTypeMismatch occurrences="1">
  5. <code>null|string</code>
  6. </ImplementedReturnTypeMismatch>
  7. </file>
  8. <file src="lib/private/legacy/OC_Template.php">
  9. <UndefinedClass occurrences="1">
  10. <code>OC</code>
  11. </UndefinedClass>
  12. </file>
  13. <file src="lib/public/App.php">
  14. <UndefinedClass occurrences="2">
  15. <code>\OC</code>
  16. <code>\OC</code>
  17. </UndefinedClass>
  18. </file>
  19. <file src="lib/public/AppFramework/ApiController.php">
  20. <NoInterfaceProperties occurrences="1">
  21. <code>$this-&gt;request-&gt;server</code>
  22. </NoInterfaceProperties>
  23. </file>
  24. <file src="lib/public/AppFramework/App.php">
  25. <UndefinedClass occurrences="1">
  26. <code>\OC</code>
  27. </UndefinedClass>
  28. </file>
  29. <file src="lib/public/AppFramework/Bootstrap/IBootContext.php">
  30. <InvalidThrow occurrences="1">
  31. <code>ContainerExceptionInterface</code>
  32. </InvalidThrow>
  33. </file>
  34. <file src="lib/public/AppFramework/Db/Entity.php">
  35. <InvalidNullableReturnType occurrences="1">
  36. <code>string</code>
  37. </InvalidNullableReturnType>
  38. <NullableReturnStatement occurrences="1">
  39. <code>$column</code>
  40. </NullableReturnStatement>
  41. </file>
  42. <file src="lib/public/AppFramework/Http/JSONResponse.php">
  43. <InvalidReturnStatement occurrences="1">
  44. <code>$this-&gt;data</code>
  45. </InvalidReturnStatement>
  46. <InvalidReturnType occurrences="1">
  47. <code>array</code>
  48. </InvalidReturnType>
  49. </file>
  50. <file src="lib/public/AppFramework/Http/Response.php">
  51. <UndefinedClass occurrences="2">
  52. <code>\OC</code>
  53. <code>\OC</code>
  54. </UndefinedClass>
  55. </file>
  56. <file src="lib/public/AppFramework/Http/Template/PublicTemplateResponse.php">
  57. <InvalidScalarArgument occurrences="1"/>
  58. </file>
  59. <file src="lib/public/AppFramework/Http/ZipResponse.php">
  60. <InvalidArrayAccess occurrences="5">
  61. <code>$resource['internalName']</code>
  62. <code>$resource['resource']</code>
  63. <code>$resource['size']</code>
  64. <code>$resource['size']</code>
  65. <code>$resource['time']</code>
  66. </InvalidArrayAccess>
  67. <InvalidPropertyAssignmentValue occurrences="1">
  68. <code>$this-&gt;resources</code>
  69. </InvalidPropertyAssignmentValue>
  70. </file>
  71. <file src="lib/public/BackgroundJob/Job.php">
  72. <UndefinedClass occurrences="1">
  73. <code>\OC</code>
  74. </UndefinedClass>
  75. </file>
  76. <file src="lib/public/BackgroundJob/TimedJob.php">
  77. <MoreSpecificImplementedParamType occurrences="1">
  78. <code>$jobList</code>
  79. </MoreSpecificImplementedParamType>
  80. </file>
  81. <file src="lib/public/Contacts/IManager.php">
  82. <UndefinedDocblockClass occurrences="1">
  83. <code>IAddressBook[]</code>
  84. </UndefinedDocblockClass>
  85. </file>
  86. <file src="lib/public/Dashboard/Model/WidgetTemplate.php">
  87. <InvalidNullableReturnType occurrences="1">
  88. <code>WidgetSetting</code>
  89. </InvalidNullableReturnType>
  90. <NullableReturnStatement occurrences="1">
  91. <code>null</code>
  92. </NullableReturnStatement>
  93. </file>
  94. <file src="lib/public/Defaults.php">
  95. <UndefinedClass occurrences="1">
  96. <code>\OC</code>
  97. </UndefinedClass>
  98. </file>
  99. <file src="lib/public/Diagnostics/IQueryLogger.php">
  100. <LessSpecificImplementedReturnType occurrences="1">
  101. <code>mixed</code>
  102. </LessSpecificImplementedReturnType>
  103. </file>
  104. <file src="lib/public/Federation/Exceptions/ActionNotSupportedException.php">
  105. <UndefinedClass occurrences="1">
  106. <code>\OC</code>
  107. </UndefinedClass>
  108. </file>
  109. <file src="lib/public/Federation/Exceptions/AuthenticationFailedException.php">
  110. <UndefinedClass occurrences="1">
  111. <code>\OC</code>
  112. </UndefinedClass>
  113. </file>
  114. <file src="lib/public/Federation/Exceptions/BadRequestException.php">
  115. <UndefinedClass occurrences="1">
  116. <code>\OC</code>
  117. </UndefinedClass>
  118. </file>
  119. <file src="lib/public/Federation/Exceptions/ProviderAlreadyExistsException.php">
  120. <UndefinedClass occurrences="1">
  121. <code>\OC</code>
  122. </UndefinedClass>
  123. </file>
  124. <file src="lib/public/Federation/Exceptions/ProviderDoesNotExistsException.php">
  125. <UndefinedClass occurrences="1">
  126. <code>\OC</code>
  127. </UndefinedClass>
  128. </file>
  129. <file src="lib/public/Files.php">
  130. <FalsableReturnStatement occurrences="1">
  131. <code>\OC_App::getStorage($app)</code>
  132. </FalsableReturnStatement>
  133. <UndefinedClass occurrences="1">
  134. <code>\OC</code>
  135. </UndefinedClass>
  136. </file>
  137. <file src="lib/public/Files/LockNotAcquiredException.php">
  138. <UndefinedClass occurrences="1">
  139. <code>\OC</code>
  140. </UndefinedClass>
  141. </file>
  142. <file src="lib/public/Files/StorageAuthException.php">
  143. <UndefinedClass occurrences="1">
  144. <code>\OC</code>
  145. </UndefinedClass>
  146. </file>
  147. <file src="lib/public/Files/StorageBadConfigException.php">
  148. <UndefinedClass occurrences="1">
  149. <code>\OC</code>
  150. </UndefinedClass>
  151. </file>
  152. <file src="lib/public/Files/StorageConnectionException.php">
  153. <UndefinedClass occurrences="1">
  154. <code>\OC</code>
  155. </UndefinedClass>
  156. </file>
  157. <file src="lib/public/Files/StorageNotAvailableException.php">
  158. <UndefinedClass occurrences="1">
  159. <code>\OC</code>
  160. </UndefinedClass>
  161. </file>
  162. <file src="lib/public/Files/StorageTimeoutException.php">
  163. <UndefinedClass occurrences="1">
  164. <code>\OC</code>
  165. </UndefinedClass>
  166. </file>
  167. <file src="lib/public/FullTextSearch/Model/ISearchRequest.php">
  168. <InvalidClass occurrences="1">
  169. <code>IsearchRequest</code>
  170. </InvalidClass>
  171. </file>
  172. <file src="lib/public/IAddressBook.php">
  173. <InvalidDocblock occurrences="1">
  174. <code>public function getUri(): string;</code>
  175. </InvalidDocblock>
  176. </file>
  177. <file src="lib/public/IAvatar.php">
  178. <UndefinedDocblockClass occurrences="1">
  179. <code>Color</code>
  180. </UndefinedDocblockClass>
  181. </file>
  182. <file src="lib/public/IContainer.php">
  183. <InvalidThrow occurrences="2">
  184. <code>ContainerExceptionInterface</code>
  185. <code>ContainerExceptionInterface</code>
  186. </InvalidThrow>
  187. </file>
  188. <file src="lib/public/IDBConnection.php">
  189. <InvalidClass occurrences="1">
  190. <code>PreconditionNotMetException</code>
  191. </InvalidClass>
  192. </file>
  193. <file src="lib/public/Search/SearchResult.php">
  194. <InvalidArgument occurrences="1">
  195. <code>$cursor</code>
  196. </InvalidArgument>
  197. </file>
  198. <file src="lib/public/Share.php">
  199. <InvalidReturnType occurrences="3">
  200. <code>array</code>
  201. <code>array|bool</code>
  202. <code>mixed</code>
  203. </InvalidReturnType>
  204. </file>
  205. <file src="lib/public/Template.php">
  206. <UndefinedFunction occurrences="7">
  207. <code>\html_select_options($options, $selected, $params)</code>
  208. <code>\human_file_size($bytes)</code>
  209. <code>\image_path($app, $image)</code>
  210. <code>\mimetype_icon($mimetype)</code>
  211. <code>\preview_icon($path)</code>
  212. <code>\publicPreview_icon($path, $token)</code>
  213. <code>\relative_modified_date($timestamp, null, $dateOnly)</code>
  214. </UndefinedFunction>
  215. </file>
  216. <file src="lib/public/User.php">
  217. <InvalidReturnStatement occurrences="1">
  218. <code>\OC_User::getUser()</code>
  219. </InvalidReturnStatement>
  220. <InvalidReturnType occurrences="1">
  221. <code>string</code>
  222. </InvalidReturnType>
  223. <UndefinedClass occurrences="1">
  224. <code>\OC</code>
  225. </UndefinedClass>
  226. </file>
  227. <file src="lib/public/Util.php">
  228. <InvalidReturnStatement occurrences="1">
  229. <code>\OC_Helper::computerFileSize($str)</code>
  230. </InvalidReturnStatement>
  231. <InvalidReturnType occurrences="1">
  232. <code>float</code>
  233. </InvalidReturnType>
  234. <UndefinedClass occurrences="12">
  235. <code>\OC</code>
  236. <code>\OC</code>
  237. <code>\OC</code>
  238. <code>\OC</code>
  239. <code>\OC</code>
  240. <code>\OC</code>
  241. <code>\OC</code>
  242. <code>\OC</code>
  243. <code>\OC</code>
  244. <code>\OC</code>
  245. <code>\OC</code>
  246. <code>\OC</code>
  247. </UndefinedClass>
  248. </file>
  249. </files>