8000 feature #16390 [3.0] [Serializer] JsonEncoder: remove deprecated meth… · symfony/symfony@fdd70c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit fdd70c9

Browse 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

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

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

Lines 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