From 0a0fa9780f5d4e507415a065172d26a98d02047b Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Fri, 30 Dec 2022 01:15:36 +0100 Subject: [PATCH] Deprecate internal constants (#96) --- src/Doctrine/Instantiator/Instantiator.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Doctrine/Instantiator/Instantiator.php b/src/Doctrine/Instantiator/Instantiator.php index 484ae26..10067a0 100644 --- a/src/Doctrine/Instantiator/Instantiator.php +++ b/src/Doctrine/Instantiator/Instantiator.php @@ -28,8 +28,12 @@ final class Instantiator implements InstantiatorInterface * Markers used internally by PHP to define whether {@see \unserialize} should invoke * the method {@see \Serializable::unserialize()} when dealing with classes implementing * the {@see \Serializable} interface. + * + * @deprecated This constant will be private in 2.0 */ - public const SERIALIZATION_FORMAT_USE_UNSERIALIZER = 'C'; + public const SERIALIZATION_FORMAT_USE_UNSERIALIZER = 'C'; + + /** @deprecated This constant will be private in 2.0 */ public const SERIALIZATION_FORMAT_AVOID_UNSERIALIZER = 'O'; /**