Error (Deceleration Of) #18

Open
opened 2020-05-03 08:57:40 +00:00 by Ghost · 1 comment

Hello ive been trying to fix this error.

Declaration of Ad5001\UHC\Main::onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $cmd, $label, array $args) must be compatible with pocketmine\plugin\PluginBase::onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool in /plugins/uhc/src/Ad5001/UHC/Main.php on line 35

Could you lend me a helping hand.

-Pluto

Hello ive been trying to fix this error. *Declaration of Ad5001\UHC\Main::onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $cmd, $label, array $args) must be compatible with pocketmine\plugin\PluginBase::onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool in /plugins/uhc/src/Ad5001/UHC/Main.php on line 35* Could you lend me a helping hand. -Pluto
Owner

Hello,
This plugin hasn't been updated for the latest version of PHP (which uses strong typing, and is used by pocketmine). I don't have the motivation to go through each of my old plugins to update them to add strong typing return.

Hello, This plugin hasn't been updated for the latest version of PHP (which uses strong typing, and is used by pocketmine). I don't have the motivation to go through each of my old plugins to update them to add strong typing return.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Ad5001/UHC#18
No description provided.