PocketMine.php: avoid use of short ternary

This commit is contained in:
Dylan K. Taylor 2020-02-05 20:48:54 +00:00
parent 889cd5e206
commit e689fd545b

View File

@ -173,7 +173,7 @@ namespace pocketmine {
$opts = getopt("", ["bootstrap:"]);
if(isset($opts["bootstrap"])){
$bootstrap = realpath($opts["bootstrap"]) ?: $opts["bootstrap"];
$bootstrap = ($real = realpath($opts["bootstrap"])) !== false ? $real : $opts["bootstrap"];
}else{
$bootstrap = dirname(__FILE__, 3) . '/vendor/autoload.php';
}