diff --git a/src/Pipedrive.php b/src/Pipedrive.php index dc28e93..0342d6a 100644 --- a/src/Pipedrive.php +++ b/src/Pipedrive.php @@ -408,7 +408,7 @@ public function __get($name) */ public function __call($name, $arguments) { - if (! in_array($name, get_class_methods(get_class()))) { + if (! in_array($name, get_class_methods(get_class($this)))) { return $this->{$name}; } }