forked from rebing/graphql-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
44 lines (44 loc) · 3.56 KB
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
includes:
- larastan.neon
parameters:
level: max
paths:
- %currentWorkingDirectory%/src/
- %currentWorkingDirectory%/tests/
excludes_analyse:
- %currentWorkingDirectory%/tests/Support/database/
ignoreErrors:
- '/Call to an undefined method Rebing\\GraphQL\\Tests\\TestCaseDatabase::setupSqlAssertionTrait\(\)/'
- '/Class Orchestra\\Database\\ConsoleServiceProvider not found/'
- '/Parameter #3 \$subject of function str_replace expects array\|string, string\|false given/'
- '/Method Rebing\\GraphQL\\GraphQL::routeNameTransformer\(\) should return string but returns string\|null/'
- '/Cannot access property \$parameters on mixed/'
- '/Parameter #1 \$haystack of function mb_stripos expects string, \(array\)\|string given/'
- '/Strict comparison using === between null and array will always evaluate to false/'
- '/Cannot access offset . on array\|Closure/'
# \Rebing\GraphQL\Support\SelectFields::handleFields
- '/Parameter #1 \$function of function call_user_func expects callable\(\): mixed, array\(mixed, mixed\) given/'
- '/Binary operation "." between string and array\|string\|null results in an error/'
- '/Parameter #1 \$key of function array_key_exists expects int\|string, string\|false given/'
- "/Parameter #1 \\$function of function call_user_func expects callable\\(\\): mixed, array\\(mixed, 'fire'\\) given/"
- '/Parameter #1 \$function of function call_user_func_array expects callable\(\): mixed, array\(\$this\(Rebing\\GraphQL\\Support\\Type\), string\) given/'
- '/Access to an undefined property GraphQL\\Language\\AST\\Node::\$kind/'
- '/Parameter #2 \$nodes of class GraphQL\\Error\\Error constructor expects GraphQL\\Language\\AST\\Node\|\(iterable<GraphQL\\Language\\AST\\Node>&Traversable\)\|null, array<int, GraphQL\\Language\\AST\\Node> given/'
- '/Call to an undefined method Illuminate\\Foundation\\Testing\\TestResponse::(content|getData|getStatusCode)\(\)/'
- '/Access to an undefined property Illuminate\\Foundation\\Testing\\TestResponse::\$headers/'
- '/Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::getAttributes\(\)/'
- '/Parameter #1 \$wrappedType of static method GraphQL\\Type\\Definition\\Type::nonNull\(\) expects GraphQL\\Type\\Definition\\NullableType, GraphQL\\Type\\Definition\\Type given/'
- '/Cannot call method set\(\) on Illuminate\\Config\\Repository\|null/'
- '/Parameter #4 \$currentPage of class Illuminate\\Pagination\\LengthAwarePaginator constructor expects int\|null, float\|int given/'
- '/Parameter #1 \$offset of method Illuminate\\Support\\Collection::slice\(\) expects int, float\|int given/'
# tests/Unit/GraphQLTest.php
- '/Call to an undefined method GraphQL\\Type\\Definition\\Type::getFields\(\)/'
- '/Call to an undefined method Mockery\\/'
- '/Parameter #2 \$replace of function str_replace expects array\|string, string\|null given/'
# tests/Unit/UploadTests/UploadMultipleFilesMutation.php
- '/Anonymous function should return string but returns string\|false/'
# tests/Unit/UploadTests/UploadSingleFileMutation.php
- '/Method Rebing\\GraphQL\\Tests\\Unit\\UploadTests\\UploadSingleFileMutation::resolve\(\) should return string but returns string\|false/'
# tests/Database/AuthorizeArgsTests/TestAuthorizationArgsQuery.php
- '/Trying to invoke Closure\|null but it might not be a callable/'
reportUnmatchedIgnoredErrors: true