Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit caa046b

Browse files
Clean up parameters config
1 parent 0c7771b commit caa046b

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

‎extension.neon

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
parameters:
22
doctrine:
3+
reportDynamicQueryBuilders: false
4+
reportUnknownTypes: false
5+
allowNullablePropertyForRequiredField: false
36
repositoryClass: null
47
ormRepositoryClass: null
58
odmRepositoryClass: null
@@ -8,6 +11,7 @@ parameters:
811
objectManagerLoader: null
912
searchOtherMethodsForQueryBuilderBeginning: true
1013
queryBuilderFastAlgorithm: false
14+
literalString: false
1115
featureToggles:
1216
skipCheckGenericClasses:
1317
- Doctrine\ODM\MongoDB\Mapping\ClassMetadata
@@ -75,6 +79,10 @@ parametersSchema:
7579
objectManagerLoader: schema(string(), nullable())
7680
searchOtherMethodsForQueryBuilderBeginning: bool()
7781
queryBuilderFastAlgorithm: bool()
82+
reportDynamicQueryBuilders: bool()
83+
reportUnknownTypes: bool()
84+
allowNullablePropertyForRequiredField: bool()
85+
literalString: bool()
7886
])
7987

8088
conditionalTags:
@@ -435,7 +443,7 @@ services:
435443
-
436444
class: PHPStan\PhpDoc\Doctrine\DoctrineLiteralStringTypeNodeResolverExtension
437445
arguments:
438-
bleedingEdge: %featureToggles.bleedingEdge%
446+
enabled: %doctrine.literalString%
439447
tags:
440448
- phpstan.phpDoc.typeNodeResolverExtension
441449

‎rules.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ parametersSchema:
1717
reportDynamicQueryBuilders: bool()
1818
reportUnknownTypes: bool()
1919
allowNullablePropertyForRequiredField: bool()
20+
literalString: bool()
2021
])
2122

2223
rules:

‎src/PhpDoc/Doctrine/DoctrineLiteralStringTypeNodeResolverExtension.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class DoctrineLiteralStringTypeNodeResolverExtension implements TypeNodeResolver
1515
{
1616

1717
/** @var bool */
18-
private $bleedingEdge;
18+
private $enabled;
1919

20-
public function __construct(bool $bleedingEdge)
20+
public function __construct(bool $enabled)
2121
{
22-
$this->bleedingEdge = $bleedingEdge;
22+
$this->enabled = $enabled;
2323
}
2424

2525
public function resolve(TypeNode $typeNode, NameScope $nameScope): ?Type
@@ -32,7 +32,7 @@ public function resolve(TypeNode $typeNode, NameScope $nameScope): ?Type
3232
return null;
3333
}
3434

35-
if ($this->bleedingEdge) {
35+
if ($this->enabled) {
3636
return new IntersectionType([
3737
new StringType(),
3838
new AccessoryLiteralStringType(),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /