menu
#10302586 A void function must not return a value

Submitted by PocketMine-MP 5.9.0

General information

Version: 5.9.0
Git commit: 46307973
Plugin involvement: Direct
Report date: 2024-02-12 19:02:56 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.1.26
JIT status: Not available
Operating system: win
System banner: Windows NT ROM1 10.0 build 19045 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: A void function must not return a value
File: plugins/VanillaFishing-main/src/santana/fishing/VanillaFishing
Line: #154
Type: E_COMPILE_ERROR
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
        curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_FORBID_REUSE, true);
curl_setopt($req, CURLOPT_FRESH_CONNECT, true);
curl_setopt($req, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($req, CURLOPT_SSL_VERIFYPEER, false);

$response = curl_exec($req);
curl_close($req);

return $response;
}

public static function override(string $name, Item $item): void {
StringToItemParser::getInstance()->override($name, fn () => $item);
}

public static function setDeserializer(string $typeName, Item $item, \Closure $deserialize = null) {
(function (string $id, \Closure $deserializer): void {
$this->deserializers[$id] = $deserializer;
})->call(

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show