Skip to content

Commit 87ccd71

Browse files
authored
remove deprecated laminas json (#4)
* remove deprecated laminas json * Update TooltipTest.php * Update ExportingTest.php * Update AbstractChart.php * Create Json.php
1 parent 9aee2d3 commit 87ccd71

File tree

5 files changed

+432
-55
lines changed

5 files changed

+432
-55
lines changed

Highcharts/AbstractChart.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Ob\HighchartsBundle\Highcharts;
44

5-
use Laminas\Json\Json;
6-
75
abstract class AbstractChart
86
{
97
// Default options
@@ -111,7 +109,7 @@ protected function renderArrayWithCallback($chartOption, $name)
111109
$result = "";
112110

113111
if (!empty($chartOption)) {
114-
// Zend\Json is used in place of json_encode to preserve JS anonymous functions
112+
// Json is used in place of json_encode to preserve JS anonymous functions
115113
$result .= $name . ": " . Json::encode($chartOption[0], false, array('enableJsonExprFinder' => true)) . ", \n";
116114
}
117115

@@ -129,7 +127,7 @@ protected function renderObjectWithCallback($chartOption, $name)
129127
$result = "";
130128

131129
if (get_object_vars($chartOption)) {
132-
// Zend\Json is used in place of json_encode to preserve JS anonymous functions
130+
// Json is used in place of json_encode to preserve JS anonymous functions
133131
$result .= $name . ": " . Json::encode($chartOption, false, array('enableJsonExprFinder' => true)) . ",\n";
134132
}
135133

0 commit comments

Comments
 (0)