-
-
Notifications
You must be signed in to change notification settings - Fork 564
/
phpstan.neon.dist
58 lines (49 loc) · 2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
parameters:
# TODO increase to max
level: 7
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\\.~"
# We utilize lazy initialization of non-nullable properties
- "~Property .+? on left side of \\?\\?= is not nullable~"
# 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~"
# PHPStan does not play nicely with markTestSkipped()
- message: "~Unreachable statement - code above always terminates~"
path: tests
includes:
- phpstan-baseline.neon
services:
-
class: GraphQL\Tests\PhpStan\Type\Definition\Type\IsAbstractTypeStaticMethodTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
-
class: GraphQL\Tests\PhpStan\Type\Definition\Type\IsCompositeTypeStaticMethodTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
-
class: GraphQL\Tests\PhpStan\Type\Definition\Type\IsInputTypeStaticMethodTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
-
class: GraphQL\Tests\PhpStan\Type\Definition\Type\IsOutputTypeStaticMethodTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension