Skip to content

Commit

Permalink
Merge pull request #1146 from rebing/mfn-phpstan
Browse files Browse the repository at this point in the history
Fix failed phpstan tests
  • Loading branch information
mfn authored Sep 2, 2024
2 parents 6c2f936 + fdd057f commit d665796
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
60 changes: 60 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,66 @@ parameters:
count: 1
path: src/Support/ExecutionMiddleware/AbstractExecutionMiddleware.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method buildSchemaFromConfig\\(\\) parameter \\#1 \\$schemaConfig with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method execute\\(\\) return type with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method formatError\\(\\) return type with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method getGlobalResolverMiddlewares\\(\\) return type with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method getSchemas\\(\\) return type with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method objectType\\(\\) parameter \\#1 \\$type with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method objectType\\(\\) parameter \\#2 \\$opts with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method query\\(\\) parameter \\#2 \\$params with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method query\\(\\) parameter \\#3 \\$opts with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method query\\(\\) return type with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method queryAndReturnResult\\(\\) parameter \\#2 \\$params with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Class Rebing\\\\GraphQL\\\\Support\\\\Facades\\\\GraphQL has PHPDoc tag @method for method queryAndReturnResult\\(\\) parameter \\#3 \\$opts with no value type specified in iterable type array\\.$#"
count: 1
path: src/Support/Facades/GraphQL.php

-
message: "#^Cannot call method getName\\(\\) on ReflectionType\\|null\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion tests/Support/Models/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @property string $title
* @property string|null $body
* @property int|null $user_id
* @property array|null $properties
* @property array{name:?string,title:?string}|null $properties
* @property bool $flag
* @property Carbon|null $published_at
* @property bool $is_published
Expand Down

0 comments on commit d665796

Please sign in to comment.