private function arrayKeyTypeErrorMessage(array $contents, string $key, string $type, string ...$path): string
    {
        $arr = 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 of %s, %s given for key [%s] (%s)', [
            implode('.', $path),
            $type,
            gettype($arr[$key]),
            $key,
            realpath($this->path),
        ]);
    }