mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Heap of bugfixes, cleanup and PHP 7 upgrades
This commit is contained in:
@ -45,7 +45,7 @@ abstract class Event{
|
||||
* @return string
|
||||
*/
|
||||
final public function getEventName() : string{
|
||||
return $this->eventName === null ? get_class($this) : $this->eventName;
|
||||
return $this->eventName ?? get_class($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user