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

Submitted by PocketMine-MP 3.11.4

General information

Version: 3.11.4
Git commit: 13f28d84
Plugin involvement: Direct
Report date: 2020-03-24 19:09:34 +0000 UTC

System Information

PHP version: 7.3.13
Operating system: win
System banner: Windows NT DESKTOP-B5VC73C 10.0 build 17763 (Windows 10) AMD64

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/BookEnchantShop/src/hexmor/BookEnchantShop/Main
Line: #216
Error level: E_COMPILE_ERROR
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
	 
public function onInventoryTransactionEvent(InventoryTransactionEvent $event) {
echo "\n\n Hale1 \n\n";
$actions = $event->getTransaction()->getActions();
foreach($actions as $action){
if($action instanceof SlotChangeAction){
echo "\n\n Hale12 \n\n";
$source = $action->getSourceItem();
$target = $action->getTargetItem();
if(isset($source->getNamedTag()->getString("Enchant")) && isset($source->getNamedTag()->getInt("Level"))){

echo "\n\n Hale \n\n";
}
}
}
}
}

Loaded Plugins

  • Show

Server Settings

  • Show