Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / serializer / Encoder / JsonEncoder.php
index 159d435836d76d407007c72a389daf8b910a2b85..44a086d60212f611dc82755b12beacc72373cdfb 100644 (file)
@@ -36,34 +36,6 @@ class JsonEncoder implements EncoderInterface, DecoderInterface
         $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}
      */
@@ -95,18 +67,4 @@ class JsonEncoder implements EncoderInterface, DecoderInterface
     {
         return self::FORMAT === $format;
     }
-
-    /**
-     * Resolves json_last_error message.
-     *
-     * @return string
-     *
-     * @deprecated since 2.8, to be removed in 3.0. Use json_last_error_msg() instead.
-     */
-    public static function getLastErrorMessage()
-    {
-        @trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Use json_last_error_msg() instead.', E_USER_DEPRECATED);
-
-        return json_last_error_msg();
-    }
 }