phpstan-baseline.neon 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. parameters:
  2. ignoreErrors:
  3. -
  4. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  5. count: 1
  6. path: src/Collection/Iterator/NestIterator.php
  7. -
  8. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  9. count: 1
  10. path: src/Collection/Iterator/NoChildrenIterator.php
  11. -
  12. message: "#^Property Cake\\\\Console\\\\ConsoleInput\\:\\:\\$_input \\(resource\\) in isset\\(\\) is not nullable\\.$#"
  13. count: 1
  14. path: src/Console/ConsoleInput.php
  15. -
  16. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  17. count: 2
  18. path: src/Console/ConsoleOptionParser.php
  19. -
  20. message: "#^Property Cake\\\\Console\\\\ConsoleOutput\\:\\:\\$_output \\(resource\\) in isset\\(\\) is not nullable\\.$#"
  21. count: 2
  22. path: src/Console/ConsoleOutput.php
  23. -
  24. message: "#^Call to an undefined method ReflectionType\\:\\:getName\\(\\)\\.$#"
  25. count: 1
  26. path: src/Controller/ControllerFactory.php
  27. -
  28. message: "#^Unknown parameter \\$components in call to method ReflectionClass\\<Cake\\\\Controller\\\\Controller\\>\\:\\:newInstance\\(\\)\\.$#"
  29. count: 1
  30. path: src/Controller/ControllerFactory.php
  31. -
  32. message: "#^Unknown parameter \\$request in call to method ReflectionClass\\<Cake\\\\Controller\\\\Controller\\>\\:\\:newInstance\\(\\)\\.$#"
  33. count: 1
  34. path: src/Controller/ControllerFactory.php
  35. -
  36. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  37. count: 8
  38. path: src/Database/Expression/QueryExpression.php
  39. -
  40. message: "#^Result of && is always false\\.$#"
  41. count: 1
  42. path: src/Database/Type/EnumType.php
  43. -
  44. message: "#^Strict comparison using \\=\\=\\= between \\*NEVER\\* and '' will always evaluate to false\\.$#"
  45. count: 1
  46. path: src/Database/Type/EnumType.php
  47. -
  48. message: "#^Template type T of method Cake\\\\Datasource\\\\QueryInterface\\:\\:all\\(\\) is not referenced in a parameter\\.$#"
  49. count: 1
  50. path: src/Datasource/QueryInterface.php
  51. -
  52. message: "#^Method Cake\\\\Error\\\\ErrorLogger\\:\\:log\\(\\) has parameter \\$level with no type specified\\.$#"
  53. count: 1
  54. path: src/Error/ErrorLogger.php
  55. -
  56. message: "#^Constructor of class Cake\\\\Error\\\\Renderer\\\\ConsoleExceptionRenderer has an unused parameter \\$request\\.$#"
  57. count: 1
  58. path: src/Error/Renderer/ConsoleExceptionRenderer.php
  59. -
  60. message: "#^Method Cake\\\\Event\\\\EventManager\\:\\:dispatch\\(\\) should return Cake\\\\Event\\\\EventInterface\\<TSubject of object\\> but returns Cake\\\\Event\\\\Event\\<object\\>\\|Cake\\\\Event\\\\EventInterface\\<TSubject of object\\>\\.$#"
  61. count: 2
  62. path: src/Event/EventManager.php
  63. -
  64. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  65. count: 1
  66. path: src/Event/EventManager.php
  67. -
  68. message: "#^Call to an undefined method Cake\\\\Core\\\\PluginInterface\\:\\:events\\(\\)\\.$#"
  69. count: 1
  70. path: src/Http/BaseApplication.php
  71. -
  72. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  73. count: 1
  74. path: src/Http/Client.php
  75. -
  76. message: "#^Constructor of class Cake\\\\Http\\\\Client\\\\Auth\\\\Digest has an unused parameter \\$options\\.$#"
  77. count: 1
  78. path: src/Http/Client/Auth/Digest.php
  79. -
  80. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  81. count: 1
  82. path: src/Http/Cookie/Cookie.php
  83. -
  84. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  85. count: 2
  86. path: src/Http/Cookie/CookieCollection.php
  87. -
  88. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  89. count: 1
  90. path: src/Http/Session.php
  91. -
  92. message: "#^Call to an undefined method Cake\\\\I18n\\\\Date\\|Cake\\\\I18n\\\\DateTime\\:\\:setTimezone\\(\\)\\.$#"
  93. count: 1
  94. path: src/I18n/RelativeTimeFormatter.php
  95. -
  96. message: "#^Method Cake\\\\ORM\\\\Behavior\\\\TreeBehavior\\:\\:_scope\\(\\) should return T of Cake\\\\ORM\\\\Query\\\\DeleteQuery\\|Cake\\\\ORM\\\\Query\\\\SelectQuery\\|Cake\\\\ORM\\\\Query\\\\UpdateQuery but returns Cake\\\\ORM\\\\Query\\\\DeleteQuery\\|Cake\\\\ORM\\\\Query\\\\SelectQuery\\|Cake\\\\ORM\\\\Query\\\\UpdateQuery\\.$#"
  97. count: 1
  98. path: src/ORM/Behavior/TreeBehavior.php
  99. -
  100. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  101. count: 2
  102. path: src/ORM/EagerLoader.php
  103. -
  104. message: "#^Method Cake\\\\ORM\\\\Query\\\\SelectQuery\\:\\:find\\(\\) should return static\\(Cake\\\\ORM\\\\Query\\\\SelectQuery\\<TSubject of array\\|Cake\\\\Datasource\\\\EntityInterface\\>\\) but returns Cake\\\\ORM\\\\Query\\\\SelectQuery\\<TSubject of array\\|Cake\\\\Datasource\\\\EntityInterface\\>\\.$#"
  105. count: 1
  106. path: src/ORM/Query/SelectQuery.php
  107. -
  108. message: "#^PHPDoc tag @return with type Cake\\\\ORM\\\\Query\\\\SelectQuery\\<TSubject of array\\|Cake\\\\Datasource\\\\EntityInterface\\> is not subtype of native type static\\(Cake\\\\ORM\\\\Query\\\\SelectQuery\\<TSubject of array\\|Cake\\\\Datasource\\\\EntityInterface\\>\\)\\.$#"
  109. count: 1
  110. path: src/ORM/Query/SelectQuery.php
  111. -
  112. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  113. count: 1
  114. path: src/Routing/RouteBuilder.php
  115. -
  116. message: "#^Parameter \\#1 \\$methods of method PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\<Cake\\\\ORM\\\\Table\\>\\:\\:addMethods\\(\\) expects array\\<int, non\\-empty\\-string\\>, non\\-empty\\-array\\<int, string\\> given\\.$#"
  117. count: 1
  118. path: src/TestSuite/TestCase.php
  119. -
  120. message: "#^Unreachable statement \\- code above always terminates\\.$#"
  121. count: 1
  122. path: src/TestSuite/TestCase.php
  123. -
  124. message: "#^Unable to resolve the template type T in call to method static method Cake\\\\Utility\\\\Hash\\:\\:insert\\(\\)$#"
  125. count: 1
  126. path: src/Utility/Hash.php
  127. -
  128. message: "#^Unsafe usage of new static\\(\\)\\.$#"
  129. count: 1
  130. path: src/View/Form/ContextFactory.php
  131. -
  132. message: "#^Constructor of class Cake\\\\View\\\\Form\\\\NullContext has an unused parameter \\$context\\.$#"
  133. count: 1
  134. path: src/View/Form/NullContext.php
  135. -
  136. message: "#^Call to an undefined method DateTimeInterface\\:\\:setTimezone\\(\\)\\.$#"
  137. count: 1
  138. path: src/View/Helper/TimeHelper.php
  139. -
  140. message: "#^Cannot access constant class on Closure\\|PDO\\|resource\\.$#"
  141. count: 1
  142. path: src/View/ViewBuilder.php
  143. -
  144. message: "#^Call to an undefined method Cake\\\\Chronos\\\\ChronosDate\\|DateTime\\|DateTimeImmutable\\:\\:setTimezone\\(\\)\\.$#"
  145. count: 1
  146. path: src/View/Widget/DateTimeWidget.php