mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8703 from jchenevey/4.3
CustomMethods->removeMethodsFrom Warnings
This commit is contained in:
commit
544f9e13c1
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user