Browse Source

Update baselines to match what is generated in CI.

Mark Story 3 years ago
parent
commit
4708a1f5f8
2 changed files with 0 additions and 41 deletions
  1. 0 30
      phpstan-baseline.neon
  2. 0 11
      psalm-baseline.xml

+ 0 - 30
phpstan-baseline.neon

@@ -1,11 +1,6 @@
 parameters:
 	ignoreErrors:
 		-
-			message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects TIterator of Iterator\\<mixed, mixed\\>, \\$this\\(Cake\\\\Collection\\\\Collection\\) given\\.$#"
-			count: 3
-			path: src/Collection/Collection.php
-
-		-
 			message: "#^Unsafe usage of new static\\(\\)\\.$#"
 			count: 1
 			path: src/Collection/Iterator/NestIterator.php
@@ -16,21 +11,6 @@ parameters:
 			path: src/Collection/Iterator/NoChildrenIterator.php
 
 		-
-			message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects TIterator of Iterator\\<mixed, mixed\\>, \\$this\\(Cake\\\\Collection\\\\Iterator\\\\TreeIterator\\) given\\.$#"
-			count: 3
-			path: src/Collection/Iterator/TreeIterator.php
-
-		-
-			message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects TIterator of Iterator\\<mixed, mixed\\>, \\$this\\(Cake\\\\Collection\\\\Iterator\\\\TreePrinter\\) given\\.$#"
-			count: 3
-			path: src/Collection/Iterator/TreePrinter.php
-
-		-
-			message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects TIterator of Iterator\\<mixed, mixed\\>, \\$this\\(Cake\\\\Collection\\\\Iterator\\\\ZipIterator\\) given\\.$#"
-			count: 3
-			path: src/Collection/Iterator/ZipIterator.php
-
-		-
 			message: "#^Call to method getOptionParser\\(\\) on an unknown class Cake\\\\Console\\\\Shell\\.$#"
 			count: 1
 			path: src/Command/CompletionCommand.php
@@ -141,11 +121,6 @@ parameters:
 			path: src/ORM/Query/SelectQuery.php
 
 		-
-			message: "#^Parameter \\#1 \\$iterator of class LimitIterator constructor expects TIterator of Iterator\\<mixed, mixed\\>, \\$this\\(Cake\\\\ORM\\\\ResultSet\\<T of array\\|Cake\\\\Datasource\\\\EntityInterface\\>\\) given\\.$#"
-			count: 2
-			path: src/ORM/ResultSet.php
-
-		-
 			message: "#^Unsafe usage of new static\\(\\)\\.$#"
 			count: 1
 			path: src/Routing/RouteBuilder.php
@@ -161,11 +136,6 @@ parameters:
 			path: src/TestSuite/TestCase.php
 
 		-
-			message: "#^Unreachable statement \\- code above always terminates\\.$#"
-			count: 1
-			path: src/Utility/Hash.php
-
-		-
 			message: "#^Unsafe usage of new static\\(\\)\\.$#"
 			count: 1
 			path: src/View/Form/ContextFactory.php

+ 0 - 11
psalm-baseline.xml

@@ -17,12 +17,6 @@
       <code>int|false</code>
       <code>int|false</code>
     </InvalidReturnType>
-    <UndefinedConstant>
-      <code>Redis::OPT_SCAN</code>
-      <code>Redis::OPT_SCAN</code>
-      <code>Redis::SCAN_RETRY</code>
-      <code>Redis::SCAN_RETRY</code>
-    </UndefinedConstant>
   </file>
   <file src="src/Console/CommandCollection.php">
     <InvalidDocblock>
@@ -59,11 +53,6 @@
       <code>EventInterface</code>
     </InvalidReturnType>
   </file>
-  <file src="src/Http/ServerRequest.php">
-    <MoreSpecificImplementedParamType>
-      <code>$requestTarget</code>
-    </MoreSpecificImplementedParamType>
-  </file>
   <file src="src/I18n/Date.php">
     <ImpureFunctionCall>
       <code>call_user_func(static::$_jsonEncodeFormat, $this)</code>