File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,4 @@ parameters:
22
22
listType : true
23
23
missingMagicSerializationRule : true
24
24
nullContextForVoidReturningFunctions : true
25
+ unescapeStrings : true
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ parameters:
52
52
listType : false
53
53
missingMagicSerializationRule : false
54
54
nullContextForVoidReturningFunctions : false
55
+ unescapeStrings : false
55
56
fileExtensions :
56
57
- php
57
58
checkAdvancedIsset : false
@@ -263,6 +264,7 @@ parametersSchema:
263
264
listType : bool ()
264
265
missingMagicSerializationRule : bool ()
265
266
nullContextForVoidReturningFunctions : bool ()
267
+ unescapeStrings : bool ()
266
268
])
267
269
fileExtensions : listOf (string ())
268
270
checkAdvancedIsset : bool ()
@@ -507,6 +509,8 @@ services:
507
509
508
510
-
509
511
class : PHPStan\PhpDocParser\Parser\ConstExprParser
512
+ arguments :
513
+ unescapeStrings : %featureToggles.unescapeStrings%
510
514
511
515
-
512
516
class : PHPStan\PhpDocParser\Parser\PhpDocParser
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public function loadConfiguration(): void
63
63
$ parser ,
64
64
new TypeStringResolver (
65
65
new Lexer (),
66
- new TypeParser (new ConstExprParser ()),
66
+ new TypeParser (new ConstExprParser ($ builder -> parameters [ ' featureToggles ' ][ ' unescapeStrings ' ] )),
67
67
new TypeNodeResolver (
68
68
new DirectTypeNodeResolverExtensionRegistryProvider (
69
69
new class implements TypeNodeResolverExtensionRegistry {
You can’t perform that action at this time.
0 commit comments