]> Raphaƫl G. Git Repositories - veranda/blob - patch/doctrineyamlnodeprecated.patch
Add improved nikic php parser used for translation extraction
[veranda] / patch / doctrineyamlnodeprecated.patch
1 diff -urNp vendor/doctrine/orm/src/Mapping/Driver/SimplifiedYamlDriver.php.orig vendor/doctrine/orm/src/Mapping/Driver/SimplifiedYamlDriver.php
2 --- vendor/doctrine/orm/src/Mapping/Driver/SimplifiedYamlDriver.php.orig 2024-10-18 04:58:29.978540376 +0200
3 +++ vendor/doctrine/orm/src/Mapping/Driver/SimplifiedYamlDriver.php 2024-10-18 05:00:01.399291026 +0200
4 @@ -8,10 +8,6 @@ use Doctrine\Persistence\Mapping\Driver\
5
6 /**
7 * YamlDriver that additionally looks for mapping information in a global file.
8 - *
9 - * @deprecated This class is being removed from the ORM and won't have any replacement
10 - *
11 - * @phpstan-ignore class.extendsDeprecatedClass
12 */
13 class SimplifiedYamlDriver extends YamlDriver
14 {
15 diff -urNp vendor/doctrine/orm/src/Mapping/Driver/YamlDriver.php.orig vendor/doctrine/orm/src/Mapping/Driver/YamlDriver.php
16 --- vendor/doctrine/orm/src/Mapping/Driver/YamlDriver.php.orig 2024-10-11 13:47:24.000000000 +0200
17 +++ vendor/doctrine/orm/src/Mapping/Driver/YamlDriver.php 2024-10-18 05:01:10.189854517 +0200
18 @@ -30,8 +30,6 @@ use function substr;
19 /**
20 * The YamlDriver reads the mapping metadata from yaml schema files.
21 *
22 - * @deprecated 2.7 This class is being removed from the ORM and won't have any replacement
23 - *
24 * @template-extends FileDriver<array<string, mixed>>
25 */
26 class YamlDriver extends FileDriver
27 @@ -43,12 +41,6 @@ class YamlDriver extends FileDriver
28 */
29 public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENSION)
30 {
31 - Deprecation::trigger(
32 - 'doctrine/orm',
33 - 'https://github.com/doctrine/orm/issues/8465',
34 - 'YAML mapping driver is deprecated and will be removed in Doctrine ORM 3.0, please migrate to attribute or XML driver.'
35 - );
36 -
37 if (! class_exists(Yaml::class)) {
38 throw new LogicException(
39 'The YAML metadata driver cannot be enabled because the "symfony/yaml" library'