ThepointofParserConfigisthatoverthecourseofphpstan/phpdoc-parser2.xdevelopmentseriesit'smostlikelygoingtogainnewoptionalparametersakintoPHPStan's[bleedingedge](https://phpstan.org/blog/what-is-bleeding-edge). These parameters will allow opting in to new behaviour which will become the default in 3.0.
WithParserConfigobject,it'snowgoingtobeimpossibletoconfigureparserclassesinconsistently.Which[happenedtousers](https://github.com/phpstan/phpdoc-parser/issues/251#issuecomment-2333927959) when they were separate boolean values.
###SupportforparsingDoctrineannotations
Thisparsernowsupportsparsing[DoctrineAnnotations](https://github.com/doctrine/annotations). The AST nodes representing Doctrine Annotations live in the [PHPStan\PhpDocParser\Ast\PhpDoc\Doctrine namespace](https://phpstan.github.io/phpdoc-parser/2.0.x/namespace-PHPStan.PhpDocParser.Ast.PhpDoc.Doctrine.html).
Inphpdoc-parser1.x,invalidtypealiassyntaxwasrepresentedas[`InvalidTagValueNode`](https://phpstan.github.io/phpdoc-parser/2.0.x/PHPStan.PhpDocParser.Ast.PhpDoc.InvalidTagValueNode.html), losing information about a type alias being present.
```php
/**
* @phpstan-type TypeAlias
*/
```
This`@phpstan-type`ismissingtheactualtypetoalias.Inphpdoc-parser2.0thisisnowrepresentedas[`TypeAliasTagValueNode`](https://phpstan.github.io/phpdoc-parser/2.0.x/PHPStan.PhpDocParser.Ast.PhpDoc.TypeAliasTagValueNode.html) (instead of `InvalidTagValueNode`) with [`InvalidTypeNode`](https://phpstan.github.io/phpdoc-parser/2.0.x/PHPStan.PhpDocParser.Ast.Type.InvalidTypeNode.html) in place of the type.
###RemovalofQuoteAwareConstExprStringNode
Theclass[QuoteAwareConstExprStringNode](https://phpstan.github.io/phpdoc-parser/1.23.x/PHPStan.PhpDocParser.Ast.ConstExpr.QuoteAwareConstExprStringNode.html) has been removed.
Instead,[ConstExprStringNode](https://phpstan.github.io/phpdoc-parser/2.0.x/PHPStan.PhpDocParser.Ast.ConstExpr.ConstExprStringNode.html) gained information about the kind of quotes being used.
Use`ConstExprStringNode::__toString()`or[`Printer`](https://phpstan.github.io/phpdoc-parser/2.0.x/PHPStan.PhpDocParser.Printer.Printer.html) to get the escaped value along with surrounding quotes.