From 3838f598220d288752f3dd2642e40336d03c3120 Mon Sep 17 00:00:00 2001 From: Anwell Wang Date: Sun, 6 Aug 2017 14:08:48 -0700 Subject: [PATCH] Add JSON_NUMERIC_CHECK --- ReactJS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactJS.php b/ReactJS.php index 8877e37..1dd9197 100644 --- a/ReactJS.php +++ b/ReactJS.php @@ -77,7 +77,7 @@ function __construct($libsrc, $appsrc) { */ function setComponent($component, $data = null) { $this->component = $component; - $this->data = json_encode($data); + $this->data = json_encode($data, JSON_NUMERIC_CHECK); return $this; }