Compare commits

..

3 Commits

Author SHA1 Message Date
Steve Boyd
7ee6edf4b1
Merge f180723daa into ba97de9458 2024-10-21 05:43:06 +00:00
Steve Boyd
f180723daa MNT Fix unit tests 2024-10-21 18:42:59 +13:00
Steve Boyd
89213c90ec FIX Call defineMethods if lower method is missing 2024-10-21 18:21:16 +13:00

View File

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