From ce09c96427300f02eebdafda4e975ec2eab86790 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Wed, 22 May 2024 21:53:12 +0200 Subject: [PATCH] Deprecate the NotSupported exception (#11470) --- UPGRADE.md | 4 ++++ src/Exception/NotSupported.php | 1 + 2 files changed, 5 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index 14dfc24e5bc..1869e9f28ff 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,5 +1,9 @@ # Upgrade to 3.2 +## Deprecate the `NotSupported` exception + +The class `Doctrine\ORM\Exception\NotSupported` is deprecated without replacement. + ## Deprecate remaining `Serializable` implementation Relying on `SequenceGenerator` implementing the `Serializable` is deprecated diff --git a/src/Exception/NotSupported.php b/src/Exception/NotSupported.php index a061aebb0dd..9192f87520e 100644 --- a/src/Exception/NotSupported.php +++ b/src/Exception/NotSupported.php @@ -8,6 +8,7 @@ use function sprintf; +/** @deprecated */ final class NotSupported extends LogicException implements ORMException { public static function create(): self