menu
#4874108 Argument 3 passed to jojoe77777\FormAPI\CustomForm::addDropdown() must be of the type int or null, string given

Submitted by PocketMine-MP 3.18.1

General information

Version: 3.18.1
Git commit: fd4ac885
Plugin involvement: Direct
Report date: 2021-04-08 06:58:19 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 57 seconds

System Information

PHP version: 7.4.15
Operating system: linux
System banner: Linux ba8eaa6b-beed-4db9-93e3-9042c3121615 4.18.0-240.10.1.el8_3.x86_64 #1 SMP Mon Jan 18 17:05:51 UTC 2021 x86_64

Error information

Warning: the FormAPI plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 3 passed to jojoe77777\FormAPI\CustomForm::addDropdown() must be of the type int or null, string given
File: plugins/FormAPI_dev-10.phar/src/jojoe77777/FormAPI/CustomForm
Line: #109
Error level: TypeError
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
        $this->labelMap[] = $label ?? count($this->labelMap);
}

/**
* @param string $text
* @param array $options
* @param int $default
* @param string|null $label
*/
public function addDropdown(string $text, array $options, int $default = null, ?string $label = null) : void {
$this->addContent(["type" => "dropdown", "text" => $text, "options" => $options, "default" => $default]);
$this->labelMap[] = $label ?? count($this->labelMap);
}

/**
* @param string $text
* @param string $placeholder
* @param string $default
* @param string|null $label
*/
#0 plugins/StaffGUI-/src/Rock/Staff/StaffPanel(519): jojoe77777\FormAPI\CustomForm->addDropdown(string[15] Select A Player, array[1], string[14] XvNEON_GAMERvX)
#1 plugins/StaffGUI-/src/Rock/Staff/StaffPanel(418): Rock\Staff\StaffPanel->tpform(object JackMD\NameSpaceRemover\CustomPlayer)
#2 pmsrc/src/pocketmine/scheduler/ClosureTask(61): Rock\Staff\StaffPanel->Rock\Staff\{closure}(integer 1116)
#3 pmsrc/src/pocketmine/scheduler/TaskHandler(137): pocketmine\scheduler\ClosureTask->onRun(integer 1116)
#4 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1116)
#5 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1116)
#6 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 1116)
#7 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#8 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#9 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#10 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#11 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#12 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show