We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de18b02 commit 6b4c939Copy full SHA for 6b4c939
src/Payout.php
@@ -97,6 +97,13 @@ public function jsonSerialize()
97
98
$requestData = Std::removeNullValues($requestData);
99
100
+ /**
101
+ * В некоторых версиях PHP необходима тонкая настройка округления при сериализации
102
+ * https://stackoverflow.com/questions/42981409/php7-1-json-encode-float-issue
103
+ */
104
+ ini_set('serialize_precision', '14');
105
+ ini_set('precision', '14');
106
+
107
return json_encode($requestData, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_LINE_TERMINATORS);
108
}
109
0 commit comments