forked from webonyx/graphql-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
51 lines (42 loc) · 1.91 KB
/
phpstan.neon.dist
File metadata and controls
51 lines (42 loc) · 1.91 KB
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
parameters:
level: 3
inferPrivatePropertyTypeFromConstructor: true
paths:
- benchmarks
- examples
- generate-class-reference.php
- src
- tests
ignoreErrors:
# Since this is a library that is supposed to be flexible, we don't
# want to lock down every possible extension point.
- "~Unsafe usage of new static\\(\\)~"
# This class uses magic methods to reduce a whole lot of boilerplate required to
# allow partial parsing of language fragments.
- "~Variable method call on GraphQL\\\\Language\\\\Parser\\.~"
# Useful/necessary in the default field resolver, deals with arbitrary user data
-
message: "~Variable property access on object~"
path: src/Executor/Executor.php
count: 2
# Those come from graphql-php\tests\Language\VisitorTest.php
- "~Access to an undefined property GraphQL\\\\Language\\\\AST\\\\.+::\\$didEnter~"
- "~Access to an undefined property GraphQL\\\\Language\\\\AST\\\\.+::\\$didLeave~"
- "~Access to an undefined property GraphQL\\\\Language\\\\AST\\\\Node::\\$value~"
# TODO convert to less magical code
- "~Variable method call on static\\(GraphQL\\\\Server\\\\ServerConfig\\)~"
includes:
- phpstan-baseline.neon
services:
-
class: GraphQL\Tests\PhpStan\Type\Definition\Type\IsInputTypeStaticMethodTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
-
class: GraphQL\Tests\PhpStan\Type\Definition\Type\IsOutputTypeStaticMethodTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
-
class: GraphQL\Tests\PhpStan\Type\Definition\Type\IsCompositeTypeStaticMethodTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension