forked from api-platform/schema-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
70 lines (70 loc) · 3.12 KB
/
phpstan.neon
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
66
67
68
69
70
parameters:
level: 8
paths:
- src
typeAliases:
PropertyConfiguration: '''
array{
exclude: boolean,
range: ?string,
relationTableName: ?string,
cardinality: string,
ormColumn: array<string, string|string[]>,
security: ?string,
groups: string[],
mappedBy: ?string,
inversedBy: ?string,
readable: boolean,
writable: boolean,
nullable: boolean,
unique: boolean,
embedded: boolean,
columnPrefix: false|string
}
'''
TypeConfiguration: '''
array{
exclude: boolean,
vocabularyNamespace: ?string,
abstract: ?boolean,
embeddable: boolean,
namespaces: array{class: ?string, interface: ?string},
doctrine: array{attributes: array<string, (int|bool|null|string|string[]|string[][]|\Nette\PhpGenerator\Literal)[]>},
parent: false|string,
guessFrom: string,
operations: array<string, array<string, string[]>>,
security: ?string,
allProperties: boolean,
properties: array<string, PropertyConfiguration>
}
'''
Configuration: '''
array{
vocabularies: array{uri: string, format: string}[],
vocabularyNamespace: string,
relations: string[],
debug: boolean,
id: array{generate: boolean, generationStrategy: string, writable: boolean, onClass: string},
useInterface: boolean,
checkIsGoodRelations: boolean,
header: ?string,
namespaces: array{prefix: ?string, entity: string, enum: string, interface: string},
doctrine: array{useCollection: boolean, resolveTargetEntityConfigPath: ?string, resolveTargetEntityConfigType: 'XML'|'yaml', inheritanceAttributes: array<string, (int|bool|null|string|string[]|string[][]|\Nette\PhpGenerator\Literal)[]>},
validator: array{assertType: boolean},
author: false|string,
fieldVisibility: string,
accessorMethods: boolean,
fluentMutatorMethods: boolean,
rangeMapping: array<string, string>,
allTypes: boolean,
types: array<string, TypeConfiguration>,
annotationGenerators: class-string<ApiPlatform\SchemaGenerator\AnnotationGenerator\AnnotationGeneratorInterface>[],
attributeGenerators: class-string<ApiPlatform\SchemaGenerator\AttributeGenerator\AttributeGeneratorInterface>[],
generatorTemplates: string[],
output: string
}
'''
inferPrivatePropertyTypeFromConstructor: true
ignoreErrors:
# False positive
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\)\.#'