private function keyNotArrayErrorMessage(array $contents, string ...$path): string
    {
        $value = array_reduce($path, function (array $arr, string $key) {
            return $arr[$key];
        }, $contents);

        return vsprintf('The key [%s] of the configuration array must be an array, %s given (%s)', [
            implode('.', $path),
            gettype($value),
            realpath($this->path),
        ]);
    }