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.25 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:
- ./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\(\)/'
- '/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/'
- '/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/'
- '/Parameter #1 \$key of function array_key_exists expects int\|string, string\|false given/'
- '/Parameter #1 \$function of function call_user_func_array expects callable\(\): mixed, array\(\$this\(Rebing\\GraphQL\\Support\\Type\), string\) given/'
- '/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/'
# 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./'
reportUnmatchedIgnoredErrors: true