Merge pull request #8703 from jchenevey/4.3

CustomMethods->removeMethodsFrom Warnings
This commit is contained in:
Robbie Averill 2019-01-09 00:16:12 +01:00 committed by GitHub
commit 544f9e13c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,6 +279,10 @@ trait CustomMethods
$methods = $this->findMethodsFromExtension($extension); $methods = $this->findMethodsFromExtension($extension);
if ($methods) { if ($methods) {
foreach ($methods as $method) { foreach ($methods as $method) {
if (!isset(self::$extra_methods[$class][$method])) {
continue;
}
$methodInfo = self::$extra_methods[$class][$method]; $methodInfo = self::$extra_methods[$class][$method];
if ($methodInfo['property'] === $property && $methodInfo['index'] === $index) { if ($methodInfo['property'] === $property && $methodInfo['index'] === $index) {