mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8702 from jchenevey/3.7
SS_Object::removeMethodsFrom silence notices
This commit is contained in:
commit
e9b23d45a7
@ -908,6 +908,10 @@ abstract class SS_Object {
|
||||
$methods = $this->findMethodsFromExtension($extension);
|
||||
if ($methods) {
|
||||
foreach ($methods as $method) {
|
||||
if (!isset(self::$extra_methods[$this->class][$method])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$methodInfo = self::$extra_methods[$this->class][$method];
|
||||
|
||||
if ($methodInfo['property'] === $property && $methodInfo['index'] === $index) {
|
||||
|
Loading…
Reference in New Issue
Block a user