mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Remove some fully qualified function calls
PhpStorm can't see these or understand how they are being called, which is very annoying for bug hunting. Additionally, we already have the CodeOptimizer for this.
This commit is contained in:
@ -82,8 +82,8 @@ abstract class EventPriority{
|
||||
public static function fromString(string $name) : int{
|
||||
$name = strtoupper($name);
|
||||
$const = self::class . "::" . $name;
|
||||
if($name !== "ALL" and \defined($const)){
|
||||
return \constant($const);
|
||||
if($name !== "ALL" and defined($const)){
|
||||
return constant($const);
|
||||
}
|
||||
|
||||
throw new \InvalidArgumentException("Unable to resolve priority \"$name\"");
|
||||
|
Reference in New Issue
Block a user