From a527c6054fada0b9d537ebd85ff146a0a5c05d8c Mon Sep 17 00:00:00 2001 From: Inhere Date: Sun, 7 Aug 2022 16:48:48 +0800 Subject: [PATCH] feat: support encode config data to INI file --- src/ConfigUtil.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ConfigUtil.php b/src/ConfigUtil.php index db02e34..9062cbf 100644 --- a/src/ConfigUtil.php +++ b/src/ConfigUtil.php @@ -127,6 +127,7 @@ public static function encodeToString(array $data, string $format, int $flags = { switch ($format) { case ConfigBox::FORMAT_INI: + return Ini::encode($data, $flags); case ConfigBox::FORMAT_TOML: throw new RuntimeException('not support encode data to ' . $format); case ConfigBox::FORMAT_PHP: