public static function methodCall(string $method, string $message, $_ = null) : InvalidOperationException
    {
        return self::formatArray('Invalid call to %s: ' . $message, array_merge([$method], array_slice(func_get_args(), 2)));
    }
public static function methodCall(string $method, string $message, $_ = null) : InvalidOperationException
    {
        return self::formatArray('Invalid call to %s: ' . $message, array_merge([$method], array_slice(func_get_args(), 2)));
    }
public static function methodCall ( string $ method , string $ message , $ _ = null ) : InvalidOperationException { return self :: formatArray ( 'Invalid call to %s: ' . $ message , array_merge ( [ $ method ] , array_slice ( func_get_args ( ) , 2 ) ) ) ; }
Constructs a new exception for a bad method call.

@param string $method
@param string $message
@param  string ...

@return InvalidOperationException
Constructs a new exception for a bad method call .