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