menu
#2467658 Cannot use isset() on the result of an expression (you can use "null !== expression" instead)

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-06-12 04:26:35 +0000 UTC

System Information

PHP version: 7.2.2
Operating system: win
System banner: Windows NT UHUVV16TSDJ7IAR 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) AMD64

Error information

Warning: the SimonSay plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot use isset() on the result of an expression (you can use "null !== expression" instead)
File: plugins/#SimonSay/src/tungsten_simonsay/Task/GameTask
Line: #268
Error level: E_COMPILE_ERROR
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
		$this->listscore = [];
$this->equallyRank = [];
$this->isCountdown = false;
$this->isFirstGamePlay = true;
$this->bestscore = 0;
$this->winner = null;
}
public function getWinner(){
for($i = 0;$i< count($this->players);$i++){
if(isset($this->players[$i]->getName(),$this->listscore)){
if($this->listscore[$this->players[$i]->getName()] > $this->bestscore){
$this->bestscore = $this->listscore[$this->players[$i]->getName()];
$this->winner = $this->players[$i]->getName();
}
}
}
for($i = 0;$i< count($this->players);$i++){
if($this->listscore[$this->players[$i]->getName()] == $this->bestscore){
array_push($this->equallyRank,$this->listscore[$this->players[$i]->getName()]);
}

Loaded Plugins

  • Show

Server Settings

  • Show