diff --git a/src/Symfony/Component/Serializer/Encoder/JsonDecode.php b/src/Symfony/Component/Serializer/Encoder/JsonDecode.php index 2ab7fbb547cc7..81c8ee0f3da5e 100644 --- a/src/Symfony/Component/Serializer/Encoder/JsonDecode.php +++ b/src/Symfony/Component/Serializer/Encoder/JsonDecode.php @@ -50,23 +50,6 @@ public function __construct($associative = false, $depth = 512) $this->recursionDepth = (int) $depth; } - /** - * Returns the last decoding error (if any). - * - * @return int - * - * @deprecated since version 2.5, to be removed in 3.0. - * The {@self decode()} method throws an exception if error found. - * - * @see http://php.net/manual/en/function.json-last-error.php json_last_error - */ - public function getLastError() - { - trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Catch the exception raised by the decode() method instead to get the last JSON decoding error.', E_USER_DEPRECATED); - - return $this->lastError; - } - /** * Decodes data. * diff --git a/src/Symfony/Component/Serializer/Encoder/JsonEncode.php b/src/Symfony/Component/Serializer/Encoder/JsonEncode.php index 76345bed694b2..622c80e681ee3 100644 --- a/src/Symfony/Component/Serializer/Encoder/JsonEncode.php +++ b/src/Symfony/Component/Serializer/Encoder/JsonEncode.php @@ -28,23 +28,6 @@ public function __construct($bitmask = 0) $this->options = $bitmask; } - /** - * Returns the last encoding error (if any). - * - * @return int - * - * @deprecated since version 2.5, to be removed in 3.0. - * The {@self encode()} throws an exception if error found. - * - * @see http://php.net/manual/en/function.json-last-error.php json_last_error - */ - public function getLastError() - { - trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Catch the exception raised by the encode() method instead to get the last JSON encoding error.', E_USER_DEPRECATED); - - return $this->lastError; - } - /** * Encodes PHP data to a JSON string. * diff --git a/src/Symfony/Component/Serializer/Encoder/JsonEncoder.php b/src/Symfony/Component/Serializer/Encoder/JsonEncoder.php index d44cd23d7afb5..beab0209e8671 100644 --- a/src/Symfony/Component/Serializer/Encoder/JsonEncoder.php +++ b/src/Symfony/Component/Serializer/Encoder/JsonEncoder.php @@ -36,34 +36,6 @@ public function __construct(JsonEncode $encodingImpl = null, JsonDecode $decodin $this->decodingImpl = $decodingImpl ?: new JsonDecode(true); } - /** - * Returns the last encoding error (if any). - * - * @return int - * - * @deprecated since version 2.5, to be removed in 3.0. JsonEncode throws exception if an error is found. - */ - public function getLastEncodingError() - { - trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Catch the exception raised by the Symfony\Component\Serializer\Encoder\JsonEncode::encode() method instead to get the last JSON encoding error.', E_USER_DEPRECATED); - - return $this->encodingImpl->getLastError(); - } - - /** - * Returns the last decoding error (if any). - * - * @return int - * - * @deprecated since version 2.5, to be removed in 3.0. JsonDecode throws exception if an error is found. - */ - public function getLastDecodingError() - { - trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Catch the exception raised by the Symfony\Component\Serializer\Encoder\JsonDecode::decode() method instead to get the last JSON decoding error.', E_USER_DEPRECATED); - - return $this->decodingImpl->getLastError(); - } - /** * {@inheritdoc} */ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy