Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
parameters :
2
2
doctrine :
3
+ reportDynamicQueryBuilders : false
4
+ reportUnknownTypes : false
5
+ allowNullablePropertyForRequiredField : false
3
6
repositoryClass : null
4
7
ormRepositoryClass : null
5
8
odmRepositoryClass : null
@@ -8,6 +11,7 @@ parameters:
8
11
objectManagerLoader : null
9
12
searchOtherMethodsForQueryBuilderBeginning : true
10
13
queryBuilderFastAlgorithm : false
14
+ literalString : false
11
15
featureToggles :
12
16
skipCheckGenericClasses :
13
17
- Doctrine\ODM\MongoDB\Mapping\ClassMetadata
@@ -75,6 +79,10 @@ parametersSchema:
75
79
objectManagerLoader : schema (string (), nullable ())
76
80
searchOtherMethodsForQueryBuilderBeginning : bool ()
77
81
queryBuilderFastAlgorithm : bool ()
82
+ reportDynamicQueryBuilders : bool ()
83
+ reportUnknownTypes : bool ()
84
+ allowNullablePropertyForRequiredField : bool ()
85
+ literalString : bool ()
78
86
])
79
87
80
88
conditionalTags :
@@ -435,7 +443,7 @@ services:
435
443
-
436
444
class : PHPStan\PhpDoc\Doctrine\DoctrineLiteralStringTypeNodeResolverExtension
437
445
arguments :
438
- bleedingEdge : %featureToggles.bleedingEdge %
446
+ enabled : %doctrine.literalString %
439
447
tags :
440
448
- phpstan.phpDoc.typeNodeResolverExtension
441
449
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ parametersSchema:
17
17
reportDynamicQueryBuilders : bool ()
18
18
reportUnknownTypes : bool ()
19
19
allowNullablePropertyForRequiredField : bool ()
20
+ literalString : bool ()
20
21
])
21
22
22
23
rules :
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ class DoctrineLiteralStringTypeNodeResolverExtension implements TypeNodeResolver
15
15
{
16
16
17
17
/** @var bool */
18
- private $ bleedingEdge ;
18
+ private $ enabled ;
19
19
20
- public function __construct (bool $ bleedingEdge )
20
+ public function __construct (bool $ enabled )
21
21
{
22
- $ this ->bleedingEdge = $ bleedingEdge ;
22
+ $ this ->enabled = $ enabled ;
23
23
}
24
24
25
25
public function resolve (TypeNode $ typeNode , NameScope $ nameScope ): ?Type
@@ -32,7 +32,7 @@ public function resolve(TypeNode $typeNode, NameScope $nameScope): ?Type
32
32
return null ;
33
33
}
34
34
35
- if ($ this ->bleedingEdge ) {
35
+ if ($ this ->enabled ) {
36
36
return new IntersectionType ([
37
37
new StringType (),
38
38
new AccessoryLiteralStringType (),
0 commit comments