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

GitLab::API: Allow subclasses in AUTOLOAD

parent f601c45d
......@@ -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'");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment