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

Submitted by PocketMine-MP 3.8.0

General information

Version: 3.8.0
Git commit: 088fbf65
Plugin involvement: Direct
Report date: 2019-05-15 23:47:40 +0000 UTC

System Information

PHP version: 7.2.12
Operating system: linux
System banner: Linux ns546439 4.9.87-xxxx-std-ipv6-64 #1 SMP Tue Mar 13 18:41:47 CET 2018 x86_64

Error information

Warning: a 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/SilkSpawnersRN[1.10].phar/src/silkSpawners/main/Loader
Line: #209
Error level: E_COMPILE_ERROR
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
			foreach($entity->getLevel()->getCollidingEntities($bb) as $ent) {
if(is_a($ent, get_class($entity)) and $stack !== $entity){
$dist = $ent->distance($entity);
if($dist < 16){
$stack = $ent;
}
}
}
if($stack !== null){
$namedTag = isset($stack->getNamedTag()) ? $stack->getNamedTag() : null;
if($namedTag !== null){
$this->getLogger()->notice("Tem CompoundTag");
}else{
$this->getLogger()->notice("Não Tem CompoundTag");
}
}
}
}
public function onCommand(CommandSender $s, Command $cmd, string $labbel, array $args) : bool
{

Loaded Plugins

  • Show

Server Settings

  • Show