From d3a177b24f0184773c1d492af246ff4229ed9e22 Mon Sep 17 00:00:00 2001 From: Markus Podar Date: Sun, 28 Jul 2024 22:19:36 +0200 Subject: [PATCH] chore(dev): composer phpstan-baseline Fixes https://github.com/rebing/graphql-laravel/actions/runs/10033925032/job/27727758170 --- phpstan-baseline.neon | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 625b40cd..10afaaeb 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -560,6 +560,11 @@ parameters: count: 1 path: tests/Database/SelectFields/InterfaceTests/ExampleInterfaceType.php + - + message: "#^Parameter \\#1 \\$column of method Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\\\:\\:where\\(\\) expects array\\\\|\\(Closure\\(Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\: Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\|\\(Closure\\(Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\: void\\)\\|Illuminate\\\\Contracts\\\\Database\\\\Query\\\\Expression\\|model property of Illuminate\\\\Database\\\\Eloquent\\\\Model, 'id' given\\.$#" + count: 1 + path: tests/Database/SelectFields/InterfaceTests/ExampleInterfaceType.php + - message: "#^Access to an undefined property Rebing\\\\GraphQL\\\\Tests\\\\Support\\\\Models\\\\Post\\:\\:\\$created_at\\.$#" count: 1 @@ -635,6 +640,16 @@ parameters: count: 1 path: tests/Database/SelectFields/MorphRelationshipTests/UsersQuery.php + - + message: "#^Parameter \\#1 \\$column of method Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\\\:\\:where\\(\\) expects array\\\\|\\(Closure\\(Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\: Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\|\\(Closure\\(Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\: void\\)\\|Illuminate\\\\Contracts\\\\Database\\\\Query\\\\Expression\\|model property of Illuminate\\\\Database\\\\Eloquent\\\\Model, 'comments\\.flag' given\\.$#" + count: 1 + path: tests/Database/SelectFields/NestedRelationLoadingTests/PostType.php + + - + message: "#^Parameter \\#1 \\$column of method Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\\\:\\:where\\(\\) expects array\\\\|\\(Closure\\(Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\: Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\|\\(Closure\\(Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\: void\\)\\|Illuminate\\\\Contracts\\\\Database\\\\Query\\\\Expression\\|model property of Illuminate\\\\Database\\\\Eloquent\\\\Model, 'posts\\.flag' given\\.$#" + count: 2 + path: tests/Database/SelectFields/NestedRelationLoadingTests/UserType.php + - message: "#^Method Rebing\\\\GraphQL\\\\Tests\\\\Database\\\\SelectFields\\\\NestedRelationLoadingTests\\\\UsersQuery\\:\\:resolve\\(\\) has no return type specified\\.$#" count: 1 @@ -700,6 +715,16 @@ parameters: count: 1 path: tests/Database/SelectFields/QueryArgsAndContextTests/GraphQLContext.php + - + message: "#^Parameter \\#1 \\$column of method Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\\\:\\:where\\(\\) expects array\\\\|\\(Closure\\(Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\: Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\|\\(Closure\\(Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\: void\\)\\|Illuminate\\\\Contracts\\\\Database\\\\Query\\\\Expression\\|model property of Illuminate\\\\Database\\\\Eloquent\\\\Model, 'comments\\.flag' given\\.$#" + count: 2 + path: tests/Database/SelectFields/QueryArgsAndContextTests/PostType.php + + - + message: "#^Parameter \\#1 \\$column of method Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\\\:\\:where\\(\\) expects array\\\\|\\(Closure\\(Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\: Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\|\\(Closure\\(Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\)\\: void\\)\\|Illuminate\\\\Contracts\\\\Database\\\\Query\\\\Expression\\|model property of Illuminate\\\\Database\\\\Eloquent\\\\Model, 'posts\\.flag' given\\.$#" + count: 3 + path: tests/Database/SelectFields/QueryArgsAndContextTests/UserType.php + - message: "#^Method Rebing\\\\GraphQL\\\\Tests\\\\Database\\\\SelectFields\\\\QueryArgsAndContextTests\\\\UsersQuery\\:\\:resolve\\(\\) has no return type specified\\.$#" count: 1