FIX Check if blank method passed (#10417)

This commit is contained in:
Steve Boyd 2022-07-21 15:49:48 +12:00 committed by GitHub
parent c0e8a21acf
commit dd210e0f84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,9 @@ trait CustomMethods
*/
protected function getExtraMethodConfig($method)
{
if (empty($method)) {
return null;
}
// Lazy define methods
if (!isset(self::$extra_methods[static::class])) {
$this->defineMethods();