pass by reference, closes #858

This commit is contained in:
El RIDO
2025-03-11 07:59:10 +01:00
parent e67972417e
commit 629f263cf5
12 changed files with 37 additions and 35 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ class Json
* @throws Exception
* @return string
*/
public static function encode($input)
public static function encode(&$input)
{
$jsonString = json_encode($input);
self::_detectError();
@@ -45,7 +45,7 @@ class Json
* @throws Exception
* @return mixed
*/
public static function decode($input)
public static function decode(&$input)
{
$output = json_decode($input, true);
self::_detectError();