forked from rebing/graphql-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
65 lines (65 loc) · 5.48 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
includes:
- ./vendor/nunomaduro/larastan/extension.neon
- ./phpstan-baseline.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\(\)/'
- '/Method Rebing\\GraphQL\\GraphQL::routeNameTransformer\(\) should return string but returns string\|null/'
- '/Cannot access property \$parameters on mixed/'
- '/Strict comparison using === between null and array will always evaluate to false/'
# \Rebing\GraphQL\Support\SelectFields::handleFields
- '/Binary operation "." between string and array\|string\|null results in an error/'
- '/Call to an undefined method Illuminate\\Testing\\TestResponse::(content|getData|getStatusCode)\(\)/'
- '/Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::getAttributes\(\)/'
- '/Parameter #4 \$currentPage of class Illuminate\\Pagination\\LengthAwarePaginator constructor expects int\|null, float\|int given/'
- '/Parameter #1 \$offset of method Illuminate\\Support\\Collection<mixed,mixed>::slice\(\) expects int, float\|int given/'
# \Rebing\GraphQL\Support\Middleware
- '/Method Rebing\\GraphQL\\Support\\Middleware::handle\(\) has no return typehint specified/'
- '/Method Rebing\\GraphQL\\Support\\Middleware::handle\(\) has parameter \$args with no typehint specified/'
- '/Method Rebing\\GraphQL\\Support\\Middleware::handle\(\) has parameter \$context with no typehint specified/'
- '/Method Rebing\\GraphQL\\Support\\Middleware::handle\(\) has parameter \$root with no typehint specified/'
- '/Method Rebing\\GraphQL\\Support\\Middleware::resolve\(\) has no return typehint specified/'
- '/Method Rebing\\GraphQL\\Support\\Middleware::resolve\(\) has parameter \$arguments with no value type specified in iterable type array/'
# \Rebing\GraphQL\Support\Objects\ExampleMiddleware
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExampleMiddleware::handle\(\) has no return typehint specified/'
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExampleMiddleware::handle\(\) has parameter \$args with no typehint specified/'
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExampleMiddleware::handle\(\) has parameter \$context with no typehint specified/'
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExampleMiddleware::handle\(\) has parameter \$root with no typehint specified/'
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExampleMiddleware::terminate\(\) has parameter \$args with no typehint specified/'
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExampleMiddleware::terminate\(\) has parameter \$context with no typehint specified/'
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExampleMiddleware::terminate\(\) has parameter \$result with no typehint specified/'
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExampleMiddleware::terminate\(\) has parameter \$root with no typehint specified/'
# \Rebing\GraphQL\Support\Objects\ExamplesMiddlewareQuery
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExamplesMiddlewareQuery::\$attributes has no typehint specified/'
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExamplesMiddlewareQuery::resolve\(\) has no return typehint specified/'
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExamplesMiddlewareQuery::resolve\(\) has parameter \$args with no typehint specified/'
- '/Rebing\\GraphQL\\Tests\\Support\\Objects\\ExamplesMiddlewareQuery::resolve\(\) has parameter \$root with no typehint specified/'
# 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/'
- '/Property Rebing\\GraphQL\\Support\\Field\:\:\$name \(string\) does not accept int\|string/'
- '/Parameter #1 \$name of method Rebing\\GraphQL\\Support\\Type\:\:getFieldResolver\(\) expects string, int\|string given/'
# tests/Unit/EndpointTest.php
- '/Parameter #1 \$wrappedType of static method GraphQL\\Type\\Definition\\Type::nonNull\(\) expects \(callable\(\): mixed\)\|GraphQL\\Type\\Definition\\NullableType, GraphQL\\Type\\Definition\\Type given/'
# Mass ignore the raw array property access used in many tests for now
# See also https://github.com/nunomaduro/larastan/issues/611
-
path: tests/*
message: '/Cannot access property \$[a-z]+ on Rebing\\GraphQL\\Tests\\Support\\Models\\[A-Za-z]+\|null./'
-
message: '/Comparison operation.*between.*and.*is always false./'
path: tests/Database/SelectFields/InterfaceTests/InterfaceTest.php
reportUnmatchedIgnoredErrors: true