src/Viserio/Component/Parser/Parser/PhpArrayParser.php
public function parse(string $payload): array
    {
        if (! \file_exists($payload)) {
            throw new ParseException(['message' => \sprintf('No such file [%s] found.', $payload)]);
        }

        try {
            $data = require $payload;
        } catch (Throwable $exception) {
            throw new ParseException(
                [
                    'message'   => \sprintf('An exception was thrown by file [%s].', $payload),
                    'exception' => $exception,
                ]
            );
        }

        return (array) $data;
    }
public function parse(string $payload): array
    {
        if (! \file_exists($payload)) {
            throw new ParseException(['message' => \sprintf('No such file [%s] found.', $payload)]);
        }

        try {
            $data = require $payload;
        } catch (Throwable $exception) {
            throw new ParseException(
                [
                    'message'   => \sprintf('An exception was thrown by file [%s].', $payload),
                    'exception' => $exception,
                ]
            );
        }

        return (array) $data;
    }
{@inheritdoc}