diff --git a/src/Core/CustomMethods.php b/src/Core/CustomMethods.php index 91b3038ea..1f166dd8b 100644 --- a/src/Core/CustomMethods.php +++ b/src/Core/CustomMethods.php @@ -279,6 +279,10 @@ trait CustomMethods $methods = $this->findMethodsFromExtension($extension); if ($methods) { foreach ($methods as $method) { + if (!isset(self::$extra_methods[$class][$method])) { + continue; + } + $methodInfo = self::$extra_methods[$class][$method]; if ($methodInfo['property'] === $property && $methodInfo['index'] === $index) {