Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -128,12 +128,12 @@ class Rule extends Model
|
||||
/**
|
||||
* Get the extension
|
||||
*
|
||||
* @return AchievementActionAbstract
|
||||
* @return AchievementActionAbstract|null
|
||||
*/
|
||||
public function extension(): AchievementActionAbstract
|
||||
public function extension(): ?AchievementActionAbstract
|
||||
{
|
||||
$exploded = explode( '_', $this->action );
|
||||
return Application::load( $exploded[0] )->extensions( 'core', 'AchievementAction' )[ $exploded[1] ];
|
||||
return Application::load( $exploded[0] )->extensions( 'core', 'AchievementAction' )[ $exploded[1] ] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user