private function normaliseVariable(string $name, $value): array
    {
        [$name, $value] = $this->sanitiseVariableValue(
            ...$this->sanitiseVariableName(
                ...$this->splitStringIntoParts($name, $value)
            )
        );

        $value = $this->resolveNestedVariables($value);

        return [$name, $value];
    }