| 148 |
lars |
1 |
Note about upgrading: Doctrine uses static and runtime mechanisms to raise
|
|
|
2 |
awareness about deprecated code.
|
|
|
3 |
|
|
|
4 |
- Use of `@deprecated` docblock that is detected by IDEs (like PHPStorm) or
|
|
|
5 |
Static Analysis tools (like Psalm, phpstan)
|
|
|
6 |
- Use of our low-overhead runtime deprecation API, details:
|
|
|
7 |
https://github.com/doctrine/deprecations/
|
|
|
8 |
|
|
|
9 |
# Upgrade to 2.0.0
|
|
|
10 |
|
|
|
11 |
`AbstractLexer::glimpse()` and `AbstractLexer::peek()` now return
|
|
|
12 |
instances of `Doctrine\Common\Lexer\Token`, which is an array-like class
|
|
|
13 |
Using it as an array is deprecated in favor of using properties of that class.
|
|
|
14 |
Using `count()` on it is deprecated with no replacement.
|