src/Viserio/Component/Config/ParameterProcessor/ComposerExtraProcessor.php
public function process(string $data)
    {
        $json = \json_decode(\trim(\file_get_contents($this->composerJsonPath)), true);

        if (\json_last_error() !== \JSON_ERROR_NONE) {
            throw new \RuntimeException(\sprintf('%s in [%s] file.', \json_last_error_msg(), $this->composerJsonPath), \json_last_error());
        }

        $parameterKey = $this->parseParameter($data);

        $newValue = $json['extra'][$parameterKey] ?? null;

        if ($newValue === null) {
            return $data;
        }

        return $this->replaceData($data, $parameterKey, (string) $newValue);
    }
public function process(string $data)
    {
        $json = \json_decode(\trim(\file_get_contents($this->composerJsonPath)), true);

        if (\json_last_error() !== \JSON_ERROR_NONE) {
            throw new \RuntimeException(\sprintf('%s in [%s] file.', \json_last_error_msg(), $this->composerJsonPath), \json_last_error());
        }

        $parameterKey = $this->parseParameter($data);

        $newValue = $json['extra'][$parameterKey] ?? null;

        if ($newValue === null) {
            return $data;
        }

        return $this->replaceData($data, $parameterKey, (string) $newValue);
    }
{@inheritdoc}