From 26bf4e0d3d8faaad6c218f6a0a7fad115f5a2e88 Mon Sep 17 00:00:00 2001 From: Johan Vlaar Date: Wed, 15 Jan 2025 16:56:18 +0100 Subject: [PATCH] [ORM-300] add missing rename class (#365) @see https://github.com/doctrine/orm/blob/3.3.x/UPGRADE.md#bc-break-exceptionormexception-is-no-longer-a-class-but-an-interface --- config/sets/doctrine-orm-300.php | 12 ++++++++++++ src/Set/DoctrineSetList.php | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 config/sets/doctrine-orm-300.php diff --git a/config/sets/doctrine-orm-300.php b/config/sets/doctrine-orm-300.php new file mode 100644 index 00000000..a1b2526a --- /dev/null +++ b/config/sets/doctrine-orm-300.php @@ -0,0 +1,12 @@ +ruleWithConfiguration(RenameClassRector::class, [ + 'Doctrine\ORM\ORMException' => 'Doctrine\ORM\Exception\ORMException', + ]); +}; diff --git a/src/Set/DoctrineSetList.php b/src/Set/DoctrineSetList.php index 01dddad8..70bc4aff 100644 --- a/src/Set/DoctrineSetList.php +++ b/src/Set/DoctrineSetList.php @@ -69,6 +69,11 @@ final class DoctrineSetList */ public const DOCTRINE_ORM_214 = __DIR__ . '/../../config/sets/doctrine-orm-214.php'; + /** + * @var string + */ + public const DOCTRINE_ORM_300 = __DIR__ . '/../../config/sets/doctrine-orm-300.php'; + /** * @var string */