diff --git a/UPGRADE.md b/UPGRADE.md index 8c06a3fc8..55179511c 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,3 +1,10 @@ +## UPGRADE FOR `1.13.x` + +### FROM `1.12.x` to `1.12.x` + +The `Sylius\Resource\Exception\VariantWithNoOptionsValuesException` and `Sylius\Component\Resource\Exception\VariantWithNoOptionsValuesException` +classes have been deprecated and will be removed in `2.0`. + ## UPGRADE FOR `1.12.x` ### FROM `1.11.x` to `1.12.x` diff --git a/src/Component/legacy/src/Exception/VariantWithNoOptionsValuesException.php b/src/Component/legacy/src/Exception/VariantWithNoOptionsValuesException.php index 0739f93c6..10ecb1a2f 100644 --- a/src/Component/legacy/src/Exception/VariantWithNoOptionsValuesException.php +++ b/src/Component/legacy/src/Exception/VariantWithNoOptionsValuesException.php @@ -16,6 +16,14 @@ class_exists(\Sylius\Resource\Exception\VariantWithNoOptionsValuesException::class); if (false) { + trigger_deprecation( + 'sylius/resource-bundle', + '1.13', + 'The "%s" class is deprecated and will be removed in 2.0.', + VariantWithNoOptionsValuesException::class, + ); + + /** @deprecated since SyliusResourceBundle 1.13 and will be removed in 2.0. */ final class VariantWithNoOptionsValuesException extends \Sylius\Resource\Exception\VariantWithNoOptionsValuesException { } diff --git a/src/Component/src/Exception/VariantWithNoOptionsValuesException.php b/src/Component/src/Exception/VariantWithNoOptionsValuesException.php index 6b8f32acc..e87d9ef34 100644 --- a/src/Component/src/Exception/VariantWithNoOptionsValuesException.php +++ b/src/Component/src/Exception/VariantWithNoOptionsValuesException.php @@ -13,6 +13,14 @@ namespace Sylius\Resource\Exception; +trigger_deprecation( + 'sylius/resource-bundle', + '1.13', + 'The "%s" class is deprecated and will be removed in 2.0.', + VariantWithNoOptionsValuesException::class, +); + +/** @deprecated since SyliusResourceBundle 1.13 and will be removed in 2.0. */ final class VariantWithNoOptionsValuesException extends Exception { public function __construct()