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

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-16 03:21:50 +0000 UTC

System Information

PHP version: 7.3.22
Operating system: linux
System banner: Linux 9d2c122e-b667-4540-95ab-14cf0e905306 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 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/SellUI.phar/src/Rendii09/SellUI/Main
Line: #160
Error level: E_COMPILE_ERROR
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
					$result = $data;
if($result === null) {
return true;
}
switch($result) {
case 1:
$item = $sender->getInventory()->getItemInHand();
$inventory = $sender->getInventory();
$contents = $inventory->getContents();
if(isset($this->cfg($item->getID().":".$item->getDamage()))) {
$price = $this->cfg($item->getID().":".$item->getDamage());
$count = 0;
foreach($contents as $slot) {
if($slot->getID() == $item->getId()) {
$count = $count + $slot->getCount();
$inventory->remove($slot);
}
}
$inventory->sendContents($sender);
$totalprice = $count * $price;

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies