-
-
Notifications
You must be signed in to change notification settings - Fork 110
/
phpstan.neon
79 lines (79 loc) · 3.76 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
71
72
73
74
75
76
77
78
79
parameters:
level: 8
paths:
- src
typeAliases:
PropertyConfiguration: '''
array{
exclude: boolean,
range: ?string,
cardinality: string,
groups: string[],
mappedBy: ?string,
inversedBy: ?string,
readable: boolean,
writable: boolean,
nullable: boolean,
defaultValue: mixed,
required: ?boolean,
unique: boolean,
embedded: boolean,
attributes: list<array<string, (int|bool|null|string|string[]|string[][]|\Nette\PhpGenerator\Literal)[]|null>>
}
'''
TypeConfiguration: '''
array{
exclude: boolean,
vocabularyNamespace: ?string,
abstract: ?boolean,
embeddable: boolean,
namespaces: array{class: ?string, interface: ?string},
attributes: list<array<string, (int|bool|null|string|string[]|string[][]|\Nette\PhpGenerator\Literal)[]|null>>,
parent: false|string,
guessFrom: string,
operations: array<string, ?array<string, string|int|bool|string[]|null>>,
allProperties: boolean,
properties: array<string, PropertyConfiguration>
}
'''
Configuration: '''
array{
vocabularies: array{uri: string, format: string, allTypes: ?boolean, attributes: list<array<string, (int|bool|null|string|string[]|string[][]|\Nette\PhpGenerator\Literal)[]|null>>}[],
vocabularyNamespace: string,
relations: array{uris: string[], defaultCardinality: string},
debug: boolean,
apiPlatformOldAttributes: boolean,
id: array{generate: boolean, generationStrategy: string, writable: boolean},
useInterface: boolean,
checkIsGoodRelations: boolean,
header: ?string,
namespaces: array{prefix: ?string, entity: string, enum: string, interface: string},
uses: array<string, array{alias: ?string}>,
doctrine: array{
useCollection: boolean,
resolveTargetEntityConfigPath: ?string,
resolveTargetEntityConfigType: 'XML'|'yaml',
inheritanceAttributes: list<array<string, (int|bool|null|string|string[]|string[][]|\Nette\PhpGenerator\Literal)[]|null>>,
inheritanceType: 'JOINED'|'SINGLE_TABLE'|'SINGLE_COLLECTION'|'TABLE_PER_CLASS'|'COLLECTION_PER_CLASS'|'NONE',
maxIdentifierLength: integer
},
validator: array{assertType: boolean},
author: false|string,
fieldVisibility: string,
accessorMethods: boolean,
fluentMutatorMethods: boolean,
rangeMapping: array<string, string>,
allTypes: boolean,
resolveTypes: boolean,
types: array<string, TypeConfiguration>,
annotationGenerators: class-string<ApiPlatform\SchemaGenerator\AnnotationGenerator\AnnotationGeneratorInterface>[],
attributeGenerators: class-string<ApiPlatform\SchemaGenerator\AttributeGenerator\AttributeGeneratorInterface>[],
generatorTemplates: string[],
output: string,
openApi: array{file: string}
}
'''
inferPrivatePropertyTypeFromConstructor: true
ignoreErrors:
# False positive
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\)\.#'