File tree 1 file changed +7
-4
lines changed
lib/internal/Magento/Framework/Serialize
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Framework \Serialize ;
7
7
8
8
/**
9
- * Used to convert \Magento\Framework\DataObject to Json
10
- *
11
- * @deprecated @see \Magento\Framework\Serialize\Serializer\Json::serialize
9
+ * This class was introducted only for usage in the \Magento\Framework\DataObject::toJson method.
10
+ * It should not be used in other cases and instead \Magento\Framework\Serialize\Serializer\Json::serialize
11
+ * should be used.
12
12
*/
13
13
class JsonConverter
14
14
{
15
15
/**
16
- * @param $data
16
+ * This method should only be used by \Magento\Framework\DataObject::toJson
17
+ * All other cases should use \Magento\Framework\Serialize\Serializer\Json::serialize directly
18
+ *
19
+ * @param string|int|float|bool|array|null $data
17
20
* @return bool|string
18
21
* @throws \InvalidArgumentException
19
22
*/
You can’t perform that action at this time.
0 commit comments