X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fserializer%2FEncoder%2FJsonEncode.php;fp=vendor%2Fsymfony%2Fserializer%2FEncoder%2FJsonEncode.php;h=14cd2c949a9913ed2a2fa5f3ef12c7660692e029;hp=454c0d6a114708a6e77cd91adaaa1cd09d009ccf;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/symfony/serializer/Encoder/JsonEncode.php b/vendor/symfony/serializer/Encoder/JsonEncode.php index 454c0d6a1..14cd2c949 100644 --- a/vendor/symfony/serializer/Encoder/JsonEncode.php +++ b/vendor/symfony/serializer/Encoder/JsonEncode.php @@ -28,22 +28,6 @@ class JsonEncode implements EncoderInterface $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. *