Browse Source

Update phpstan's baseline file

ADmad 6 years ago
parent
commit
444ac5895f
1 changed files with 1 additions and 116 deletions
  1. 1 116
      phpstan-baseline.neon

+ 1 - 116
phpstan-baseline.neon

@@ -176,31 +176,11 @@ parameters:
 			path: src/Console/ConsoleOptionParser.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/Console/HelperRegistry.php
-
-		-
-			message: "#^PHPDoc tag @return with type Cake\\\\Console\\\\never\\-return is incompatible with native type void\\.$#"
-			count: 1
-			path: src/Console/Shell.php
-
-		-
-			message: "#^Return typehint of method Cake\\\\Console\\\\Shell\\:\\:abort\\(\\) has invalid type Cake\\\\Console\\\\never\\-return\\.$#"
-			count: 1
-			path: src/Console/Shell.php
-
-		-
 			message: "#^Strict comparison using \\=\\=\\= between int and null will always evaluate to false\\.$#"
 			count: 1
 			path: src/Console/ShellDispatcher.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/Console/TaskRegistry.php
-
-		-
 			message: "#^Call to an undefined method Cake\\\\Auth\\\\Storage\\\\StorageInterface\\:\\:getConfig\\(\\)\\.$#"
 			count: 1
 			path: src/Controller/Component/AuthComponent.php
@@ -256,21 +236,11 @@ parameters:
 			path: src/Controller/ErrorController.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 2
-			path: src/Core/App.php
-
-		-
 			message: "#^Parameter \\#1 \\$autoload_function of function spl_autoload_register expects callable\\(string\\)\\: void, array\\(\\$this\\(Cake\\\\Core\\\\ClassLoader\\), 'loadClass'\\) given\\.$#"
 			count: 1
 			path: src/Core/ClassLoader.php
 
 		-
-			message: "#^Method Cake\\\\Core\\\\ObjectRegistry\\:\\:get\\(\\) should return TObject but returns TObject\\.$#"
-			count: 1
-			path: src/Core/ObjectRegistry.php
-
-		-
 			message: "#^PHPDoc tag @param for parameter \\$object with type TObject is not subtype of native type object\\.$#"
 			count: 1
 			path: src/Core/ObjectRegistry.php
@@ -281,11 +251,6 @@ parameters:
 			path: src/Core/ObjectRegistry.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 2
-			path: src/Core/PluginCollection.php
-
-		-
 			message: "#^Variable \\$_registry in PHPDoc tag @var does not exist\\.$#"
 			count: 1
 			path: src/Cache/Cache.php
@@ -311,12 +276,7 @@ parameters:
 			path: src/Mailer/TransportFactory.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/Core/functions.php
-
-		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
+			message: "#^Access to an undefined property PDO\\:\\:\\$_connection\\.$#"
 			count: 1
 			path: src/Database/Driver/Sqlserver.php
 
@@ -346,11 +306,6 @@ parameters:
 			path: src/Database/Driver.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/Database/Driver.php
-
-		-
 			message: "#^If condition is always true\\.$#"
 			count: 1
 			path: src/Database/Driver/Mysql.php
@@ -421,21 +376,6 @@ parameters:
 			path: src/Database/Statement/SqlserverStatement.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 2
-			path: src/Database/Type/DateTimeType.php
-
-		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/Database/TypeFactory.php
-
-		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/Datasource/ConnectionRegistry.php
-
-		-
 			message: "#^Unreachable statement \\- code above always terminates\\.$#"
 			count: 1
 			path: src/ORM/Entity.php
@@ -456,16 +396,6 @@ parameters:
 			path: src/Error/Debugger.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/Error/ErrorHandler.php
-
-		-
-			message: "#^Method Cake\\\\Event\\\\Event\\:\\:getSubject\\(\\) should return TSubject but returns TSubject\\.$#"
-			count: 1
-			path: src/Event/Event.php
-
-		-
 			message: "#^Unsafe usage of new static\\(\\)\\.$#"
 			count: 1
 			path: src/Event/EventManager.php
@@ -541,16 +471,6 @@ parameters:
 			path: src/Http/Cookie/CookieCollection.php
 
 		-
-			message: "#^Method Cake\\\\Http\\\\Middleware\\\\CspMiddleware\\:\\:process\\(\\) should return Psr\\\\Http\\\\Message\\\\ResponseInterface but returns Psr\\\\Http\\\\Message\\\\MessageInterface\\.$#"
-			count: 1
-			path: src/Http/Middleware/CspMiddleware.php
-
-		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/Http/Middleware/CspMiddleware.php
-
-		-
 			message: "#^Method Cake\\\\Http\\\\Response\\:\\:withDisabledCache\\(\\) should return static\\(Cake\\\\Http\\\\Response\\) but returns Cake\\\\Http\\\\Response\\.$#"
 			count: 1
 			path: src/Http/Response.php
@@ -676,11 +596,6 @@ parameters:
 			path: src/I18n/Time.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/I18n/TranslatorFactory.php
-
-		-
 			message: "#^PHPDoc tag @var has invalid value \\(\\\\Psr\\\\SimpleCache\\\\CacheInterface&\\\\Cake\\\\Cache\\\\CacheEngineInterface\\|null\\)\\: Unexpected token \"\\|\", expected TOKEN_OTHER at offset 175$#"
 			count: 1
 			path: src/I18n/TranslatorRegistry.php
@@ -721,11 +636,6 @@ parameters:
 			path: src/ORM/Association/BelongsToMany.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/ORM/Behavior/TranslateBehavior.php
-
-		-
 			message: "#^Call to an undefined method Cake\\\\Collection\\\\CollectionInterface\\:\\:printer\\(\\)\\.$#"
 			count: 1
 			path: src/ORM/Behavior/TreeBehavior.php
@@ -736,11 +646,6 @@ parameters:
 			path: src/ORM/EagerLoader.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/ORM/Locator/TableLocator.php
-
-		-
 			message: "#^Parameter \\#1 \\$assoc of method Cake\\\\ORM\\\\Marshaller\\:\\:_belongsToMany\\(\\) expects Cake\\\\ORM\\\\Association\\\\BelongsToMany, Cake\\\\ORM\\\\Association given\\.$#"
 			count: 1
 			path: src/ORM/Marshaller.php
@@ -771,11 +676,6 @@ parameters:
 			path: src/ORM/Query.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/ORM/Query.php
-
-		-
 			message: "#^Method Cake\\\\ORM\\\\Query\\:\\:find\\(\\) should return static\\(Cake\\\\ORM\\\\Query\\) but returns Cake\\\\ORM\\\\Query\\.$#"
 			count: 1
 			path: src/ORM/Query.php
@@ -801,11 +701,6 @@ parameters:
 			path: src/ORM/Table.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/ORM/Table.php
-
-		-
 			message: "#^Parameter \\#1 \\$request of static method Cake\\\\Routing\\\\Router\\:\\:setRequest\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#"
 			count: 2
 			path: src/Routing/Middleware/RoutingMiddleware.php
@@ -821,11 +716,6 @@ parameters:
 			path: src/Routing/Route/EntityRoute.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/Routing/Route/Route.php
-
-		-
 			message: "#^Unsafe usage of new static\\(\\)\\.$#"
 			count: 1
 			path: src/Routing/RouteBuilder.php
@@ -991,11 +881,6 @@ parameters:
 			path: src/View/View.php
 
 		-
-			message: "#^PHPDoc tag @var does not specify variable name\\.$#"
-			count: 1
-			path: src/View/ViewBuilder.php
-
-		-
 			message: "#^Unreachable statement \\- code above always terminates\\.$#"
 			count: 1
 			path: src/View/Widget/SelectBoxWidget.php