diff options
author | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
commit | bf6655a534a6775d30cafa67bd801276bda1d98d (patch) | |
tree | c6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/lexer/UPGRADE.md | |
parent | 94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff) | |
download | AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip |
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/lexer/UPGRADE.md')
-rw-r--r-- | vendor/doctrine/lexer/UPGRADE.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/doctrine/lexer/UPGRADE.md b/vendor/doctrine/lexer/UPGRADE.md new file mode 100644 index 0000000..1933fcb --- /dev/null +++ b/vendor/doctrine/lexer/UPGRADE.md | |||
@@ -0,0 +1,22 @@ | |||
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 3.0.0 | ||
10 | |||
11 | `Doctrine\Common\Lexer\Token` no longer implements `ArrayAccess`. | ||
12 | Parameter type declarations have been added to | ||
13 | `Doctrine\Common\Lexer\AbstractLexer` and `Doctrine\Common\Lexer\Token`. | ||
14 | You should add both parameter type declarations and return type declarations to | ||
15 | your lexers, based on the `@return` phpdoc. | ||
16 | |||
17 | # Upgrade to 2.0.0 | ||
18 | |||
19 | `AbstractLexer::glimpse()` and `AbstractLexer::peek()` now return | ||
20 | instances of `Doctrine\Common\Lexer\Token`, which is an array-like class | ||
21 | Using it as an array is deprecated in favor of using properties of that class. | ||
22 | Using `count()` on it is deprecated with no replacement. | ||