menu
#3228918 A function with return type must return a value (did you mean "return null;" instead of "return;"?)

Submitted by PocketMine-MP 3.9.5

General information

Version: 3.9.5
Git commit: f0539f48
Plugin involvement: Direct
Report date: 2019-11-29 21:54:41 +0000 UTC

System Information

PHP version: 7.2.14
Operating system: linux
System banner: Linux s1571 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: A function with return type must return a value (did you mean "return null;" instead of "return;"?)
File: plugins/DataBase/src/ThisCrazy/DataBase
Line: #49
Error level: E_COMPILE_ERROR
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
                    } else $sender->sendMessage('Забыл айди');
}
} else $sender->sendMessage('get, update, delete');
}
return true;
}

public function issetColumn($table, $name) : ?bool {
$link = $this->connectToDB();
if (!$link) return;
$sql = mysqli_query($link, "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '$table'");
$result = false;
while ($result = mysqli_fetch_array($sql)) {
if (in_array($name, $result)) {
$result = true;
break;
}
}
return $result;
}

Loaded Plugins

  • Show

Server Settings

  • Show