Compare commits

..

2 Commits

Author SHA1 Message Date
Steve Boyd
598356a0a4
Merge 790faa6260 into ba97de9458 2024-10-22 12:46:34 +13:00
Steve Boyd
790faa6260 MNT Fix unit tests 2024-10-22 12:46:28 +13:00

View File

@ -171,14 +171,11 @@ trait CustomMethods
}
// Lazy define methods
$lowerClass = strtolower(static::class);
$lowerMethod = strtolower($method);
if (!array_key_exists($lowerClass, self::class::$extra_methods)
|| !array_key_exists($lowerMethod, self::class::$extra_methods[$lowerClass])
) {
if (!isset(self::class::$extra_methods[$lowerClass])) {
$this->defineMethods();
}
return self::class::$extra_methods[$lowerClass][$lowerMethod] ?? null;
return self::class::$extra_methods[$lowerClass][strtolower($method)] ?? null;
}
/**