psalm-baseline.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <files psalm-version="5.23.1@8471a896ccea3526b26d082f4461eeea467f10a4">
  3. <file src="src/Cache/Engine/FileEngine.php">
  4. <TooManyTemplateParams>
  5. <code><![CDATA[$iterator]]></code>
  6. </TooManyTemplateParams>
  7. </file>
  8. <file src="src/Cache/Engine/RedisEngine.php">
  9. <InvalidCast>
  10. <code><![CDATA[$this->_Redis->del($key)]]></code>
  11. <code><![CDATA[$this->_Redis->del($key)]]></code>
  12. <code><![CDATA[$this->_Redis->unlink($key)]]></code>
  13. <code><![CDATA[$this->_Redis->unlink($key)]]></code>
  14. </InvalidCast>
  15. <InvalidReturnStatement>
  16. <code><![CDATA[$this->_Redis->set($key, $value)]]></code>
  17. <code><![CDATA[$this->_Redis->setEx($key, $duration, $value)]]></code>
  18. <code><![CDATA[$value]]></code>
  19. <code><![CDATA[$value]]></code>
  20. </InvalidReturnStatement>
  21. <InvalidReturnType>
  22. <code><![CDATA[bool]]></code>
  23. <code><![CDATA[int|false]]></code>
  24. <code><![CDATA[int|false]]></code>
  25. </InvalidReturnType>
  26. </file>
  27. <file src="src/Core/PluginConfig.php">
  28. <RedundantCondition>
  29. <code><![CDATA[is_array($pluginLoadConfig)]]></code>
  30. </RedundantCondition>
  31. </file>
  32. <file src="src/Event/EventDispatcherTrait.php">
  33. <MoreSpecificImplementedParamType>
  34. <code><![CDATA[$subject]]></code>
  35. </MoreSpecificImplementedParamType>
  36. </file>
  37. <file src="src/Event/EventManager.php">
  38. <InvalidArgument>
  39. <code><![CDATA[_callListener]]></code>
  40. <code><![CDATA[addEventToList]]></code>
  41. <code><![CDATA[addEventToList]]></code>
  42. </InvalidArgument>
  43. <InvalidReturnStatement>
  44. <code><![CDATA[$event]]></code>
  45. <code><![CDATA[$event]]></code>
  46. </InvalidReturnStatement>
  47. <InvalidReturnType>
  48. <code><![CDATA[EventInterface]]></code>
  49. </InvalidReturnType>
  50. </file>
  51. <file src="src/I18n/Date.php">
  52. <ImpureFunctionCall>
  53. <code><![CDATA[call_user_func(static::$_jsonEncodeFormat, $this)]]></code>
  54. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  55. </ImpureFunctionCall>
  56. <ImpureMethodCall>
  57. <code><![CDATA[_formatObject]]></code>
  58. <code><![CDATA[dateAgoInWords]]></code>
  59. <code><![CDATA[diffFormatter]]></code>
  60. <code><![CDATA[getDefaultLocale]]></code>
  61. </ImpureMethodCall>
  62. <ImpureStaticProperty>
  63. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  64. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  65. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  66. <code><![CDATA[static::$_toStringFormat]]></code>
  67. <code><![CDATA[static::$niceFormat]]></code>
  68. </ImpureStaticProperty>
  69. </file>
  70. <file src="src/I18n/DateTime.php">
  71. <ImpureFunctionCall>
  72. <code><![CDATA[call_user_func(static::$_jsonEncodeFormat, $this)]]></code>
  73. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  74. </ImpureFunctionCall>
  75. <ImpureMethodCall>
  76. <code><![CDATA[_formatObject]]></code>
  77. <code><![CDATA[diffFormatter]]></code>
  78. <code><![CDATA[getDefaultLocale]]></code>
  79. <code><![CDATA[timeAgoInWords]]></code>
  80. </ImpureMethodCall>
  81. <ImpureStaticProperty>
  82. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  83. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  84. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  85. <code><![CDATA[static::$_toStringFormat]]></code>
  86. <code><![CDATA[static::$niceFormat]]></code>
  87. </ImpureStaticProperty>
  88. </file>
  89. <file src="src/I18n/Time.php">
  90. <ImpureFunctionCall>
  91. <code><![CDATA[call_user_func(static::$_jsonEncodeFormat, $this)]]></code>
  92. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  93. </ImpureFunctionCall>
  94. <ImpureMethodCall>
  95. <code><![CDATA[_formatObject]]></code>
  96. <code><![CDATA[getDefaultLocale]]></code>
  97. <code><![CDATA[toNative]]></code>
  98. </ImpureMethodCall>
  99. <ImpureStaticProperty>
  100. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  101. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  102. <code><![CDATA[static::$_jsonEncodeFormat]]></code>
  103. <code><![CDATA[static::$_toStringFormat]]></code>
  104. <code><![CDATA[static::$niceFormat]]></code>
  105. </ImpureStaticProperty>
  106. </file>
  107. <file src="src/TestSuite/Constraint/EventFired.php">
  108. <InternalClass>
  109. <code><![CDATA[new AssertionFailedError(
  110. 'The event manager you are asserting against is not configured to track events.'
  111. )]]></code>
  112. </InternalClass>
  113. <InternalMethod>
  114. <code><![CDATA[new AssertionFailedError(
  115. 'The event manager you are asserting against is not configured to track events.'
  116. )]]></code>
  117. </InternalMethod>
  118. </file>
  119. <file src="src/TestSuite/Constraint/EventFiredWith.php">
  120. <InternalClass>
  121. <code><![CDATA[new AssertionFailedError(
  122. 'The event manager you are asserting against is not configured to track events.'
  123. )]]></code>
  124. <code><![CDATA[new AssertionFailedError(sprintf(
  125. 'Event `%s` was fired %d times, cannot make data assertion',
  126. $other,
  127. count($events)
  128. ))]]></code>
  129. </InternalClass>
  130. <InternalMethod>
  131. <code><![CDATA[new AssertionFailedError(
  132. 'The event manager you are asserting against is not configured to track events.'
  133. )]]></code>
  134. <code><![CDATA[new AssertionFailedError(sprintf(
  135. 'Event `%s` was fired %d times, cannot make data assertion',
  136. $other,
  137. count($events)
  138. ))]]></code>
  139. </InternalMethod>
  140. </file>
  141. <file src="src/TestSuite/Constraint/Response/ResponseBase.php">
  142. <InternalClass>
  143. <code><![CDATA[new AssertionFailedError('No response set, cannot assert content.')]]></code>
  144. </InternalClass>
  145. <InternalMethod>
  146. <code><![CDATA[new AssertionFailedError('No response set, cannot assert content.')]]></code>
  147. </InternalMethod>
  148. </file>
  149. <file src="src/TestSuite/Constraint/Session/FlashParamEquals.php">
  150. <InternalClass>
  151. <code><![CDATA[new AssertionFailedError($message)]]></code>
  152. </InternalClass>
  153. <InternalMethod>
  154. <code><![CDATA[new AssertionFailedError($message)]]></code>
  155. </InternalMethod>
  156. </file>
  157. <file src="src/TestSuite/TestCase.php">
  158. <UndefinedVariable>
  159. <code><![CDATA[$previousHandler]]></code>
  160. </UndefinedVariable>
  161. </file>
  162. <file src="src/Utility/Filesystem.php">
  163. <TooManyTemplateParams>
  164. <code><![CDATA[$iterator]]></code>
  165. <code><![CDATA[$iterator]]></code>
  166. </TooManyTemplateParams>
  167. </file>
  168. <file src="src/Utility/Hash.php">
  169. <InvalidReturnStatement>
  170. <code><![CDATA[$data]]></code>
  171. <code><![CDATA[$data]]></code>
  172. </InvalidReturnStatement>
  173. <InvalidReturnType>
  174. <code><![CDATA[(T is array ? array : \ArrayAccess)]]></code>
  175. <code><![CDATA[(T is array ? array : \ArrayAccess)]]></code>
  176. </InvalidReturnType>
  177. </file>
  178. <file src="src/Validation/Validation.php">
  179. <RedundantCondition>
  180. <code><![CDATA[$check instanceof $enumClassName &&
  181. $check instanceof BackedEnum]]></code>
  182. </RedundantCondition>
  183. </file>
  184. <file src="src/View/Exception/MissingCellTemplateException.php">
  185. <ImplementedReturnTypeMismatch>
  186. <code><![CDATA[array{name: string, file: string, paths: list<string>}]]></code>
  187. </ImplementedReturnTypeMismatch>
  188. </file>
  189. <file src="src/View/Helper/PaginatorHelper.php">
  190. <TypeDoesNotContainType>
  191. <code><![CDATA[empty($this->_config['options']['url'])]]></code>
  192. </TypeDoesNotContainType>
  193. </file>
  194. </files>