Пример #1
0
 /**
  * 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();
 }
Пример #2
0
 /**
  * Returns the last decoding error (if any).
  *
  * @return int
  *
  * @deprecated since 2.5, JsonDecode throws exception if an error is found, will be removed in 3.0
  */
 public function getLastDecodingError()
 {
     return $this->decodingImpl->getLastError();
 }