src/Viserio/Component/Parser/Parser/IniParser.php
public function parse(string $payload): array
    {
        \set_error_handler(static function ($severity, $message, $file, $line): void {
            throw new ParseException([
                'severity' => $severity,
                'message'  => $message,
                'file'     => $file,
                'line'     => $line,
            ]);
        });

        $ini = \parse_ini_string(\trim($payload), true, \INI_SCANNER_RAW);

        \restore_error_handler();

        if (! $ini) {
            throw new ParseException(['message' => 'No parsable content.']);
        }

        foreach ($ini as $key => $value) {
            $ini[$key] = self::normalize($value);
        }

        return $ini;
    }
public function parse(string $payload): array
    {
        \set_error_handler(static function ($severity, $message, $file, $line): void {
            throw new ParseException([
                'severity' => $severity,
                'message'  => $message,
                'file'     => $file,
                'line'     => $line,
            ]);
        });

        $ini = \parse_ini_string(\trim($payload), true, \INI_SCANNER_RAW);

        \restore_error_handler();

        if (! $ini) {
            throw new ParseException(['message' => 'No parsable content.']);
        }

        foreach ($ini as $key => $value) {
            $ini[$key] = self::normalize($value);
        }

        return $ini;
    }
{@inheritdoc}