- The
NamedArgumentConstructorAnnotation
has been removed. Use the@NamedArgumentConstructor
annotation instead. SimpleAnnotationReader
has been removed.DocLexer::peek()
andDocLexer::glimpse
now returnDoctrine\Common\Lexer\Token
objects. When usingdoctrine/lexer
2, these implementArrayAccess
as a way for you to still be able to treat them as arrays in some ways.CachedReader
andFileCacheReader
have been removed usePsrCachedReader
instead.AnnotationRegistry
methods related to registering annotations instead of using autoloading have been removed.- Parameter type declarations have been added to all methods of all classes. If you have classes inheriting from classes inside this package, you should add parameter and return type declarations.
- Support for PHP < 7.2 has been removed
PhpParser::parseClass()
has been removed. UsePhpParser::parseUseStatements()
instead.