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),
        ]);
    }
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),
        ]);
    }
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 ) , ] ) ; }
Return the error message of the exception thrown when a key of the
configuration array is not an array.

@param array     $contents
@param string    ...$path
@return string
Return the error message of the exception thrown when a key of the configuration array is not an array .