Verified Commit 5cbb9273 authored by Roman Lacko's avatar Roman Lacko
Browse files

GitLab::API: Allow subclasses in AUTOLOAD

parent f601c45d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -454,10 +454,10 @@ sub AUTOLOAD {
    $method =~ s/.*:://g;

    croak "Not a GitLab::API instance"
        unless (blessed($self) // "") eq __PACKAGE__;
        if !blessed($self) || !$self->isa(__PACKAGE__);

    croak "Unknown method '$AUTOLOAD' called"
        unless defined $methods{$method};
        if !defined $methods{$method};

    $log->debug("autoloading method '$method'");