960 B
960 B
Upgrade from 1.0.x to 2.0.x
- The
NamedArgumentConstructorAnnotationhas been removed. Use the@NamedArgumentConstructorannotation instead. SimpleAnnotationReaderhas been removed.DocLexer::peek()andDocLexer::glimpsenow returnDoctrine\Common\Lexer\Tokenobjects. When usingdoctrine/lexer2, these implementArrayAccessas a way for you to still be able to treat them as arrays in some ways.CachedReaderandFileCacheReaderhave been removed usePsrCachedReaderinstead.AnnotationRegistrymethods 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.