Skip to content

Commit e5793df

Browse files
committed
Turn on quoteAwareConstExprString in phpdoc-parser
1 parent 10afe84 commit e5793df

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

conf/config.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ services:
561561

562562
-
563563
class: PHPStan\PhpDocParser\Parser\TypeParser
564+
arguments:
565+
quoteAwareConstExprString: %featureToggles.unescapeStrings%
564566

565567
-
566568
class: PHPStan\PhpDocParser\Parser\ConstExprParser

src/PhpDoc/ConstExprParserFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function __construct(private bool $unescapeStrings)
1313

1414
public function create(): ConstExprParser
1515
{
16-
return new ConstExprParser($this->unescapeStrings);
16+
return new ConstExprParser($this->unescapeStrings, $this->unescapeStrings);
1717
}
1818

1919
}

0 commit comments

Comments
 (0)