Skip to content

Commit

Permalink
graphql-php-v15: adapt phpstan config
Browse files Browse the repository at this point in the history
  • Loading branch information
mfn committed Oct 17, 2022
1 parent 561945a commit 6d37ae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ parameters:
- '/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./'
- path: tests/*
message: '/Parameter #1 \$type of static method GraphQL\\Type\\Definition\\Type::nonNull\(\) expects .*, GraphQL\\Type\\Definition\\Type given./'
reportUnmatchedIgnoredErrors: true

0 comments on commit 6d37ae6

Please sign in to comment.