Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fdd70c9

Browse filesBrowse files
committed
feature #16390 [3.0] [Serializer] JsonEncoder: remove deprecated method (TomasVotruba)
This PR was merged into the 3.0-dev branch. Discussion ---------- [3.0] [Serializer] JsonEncoder: remove deprecated method | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 87d5589 [Serializer] JsonEncoder: remove deprecated method
2 parents b286890 + 87d5589 commit fdd70c9
Copy full SHA for fdd70c9

File tree

1 file changed

+0
-14
lines changed
Filter options

1 file changed

+0
-14
lines changed

‎src/Symfony/Component/Serializer/Encoder/JsonEncoder.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Encoder/JsonEncoder.php
-14Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,4 @@ public function supportsDecoding($format)
6767
{
6868
return self::FORMAT === $format;
6969
}
70-
71-
/**
72-
* Resolves json_last_error message.
73-
*
74-
* @return string
75-
*
76-
* @deprecated since 2.8, to be removed in 3.0. Use json_last_error_msg() instead.
77-
*/
78-
public static function getLastErrorMessage()
79-
{
80-
@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);
81-
82-
return json_last_error_msg();
83-
}
8470
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.