From 036589661548eabab84b67fb3c6872a73daa0b29 Mon Sep 17 00:00:00 2001 From: Algoetech Company <136216514+algoetech@users.noreply.github.com> Date: Mon, 29 Jul 2024 13:07:10 +0300 Subject: [PATCH] Update JsonFile.php --- Json/JsonFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Json/JsonFile.php b/Json/JsonFile.php index de1394d..2eba45d 100644 --- a/Json/JsonFile.php +++ b/Json/JsonFile.php @@ -95,11 +95,11 @@ public function write(array $hash, $options = 448) /** * {@inheritdoc} */ - public static function encode($data, $options = 448) + public static function encode($data, int $options = 448, string $indent = parent::INDENT_DEFAULT): string { $result = parent::encode($data, $options); - return JsonFormatter::format($result, self::$encodeArrayKeys, self::$encodeIndent, false); + return JsonFormatter::format($result, self::$encodeArrayKeys, $indent, false); } /**