menu
#277 Cannot assign non-thread-safe value of type pocketmine\plugin\PluginLogger to thread-safe class property anmine\system\pdo\connection\PDOConnection::$logger

Submitted by PocketMine-MP 5.22.1+dev.2082

General information

Version: 5.22.1+dev.2082
Git commit: 422f7837
Plugin involvement: Direct
Report date: 2024-12-21 21:53:58 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 2 seconds

System Information

PHP version: 8.3.4
JIT status: Not available
Operating system: linux
System banner: Linux anmine.ru 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64

Error information

Warning: the AnSystem plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Cannot assign non-thread-safe value of type pocketmine\plugin\PluginLogger to thread-safe class property anmine\system\pdo\connection\PDOConnection::$logger
File: plugins/AnSystem/src/anmine/system/pdo/connection/PDOConnection
Line: #22
Type: pmmp\thread\NonThreadSafeValueError
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
private ?PDODriver $connection = null;
private Logger $logger;

public function __construct(
private readonly PDOCredentials $credentials,
private readonly int $reconnectAttempts = 3
)
{
$this->logger = PDO::getLogger();
}

private function connect(): void
{
for ($i = 0; $i < $this->reconnectAttempts; $i++) {
try {
$this->connection = new PDODriver(
$this->credentials->getDsn(),
$this->credentials->getUser(),
$this->credentials->getPassword(),
#0 plugins/AnSystem/src/anmine/system/pdo/PDO(35): anmine\system\pdo\connection\PDOConnection->__construct(object anmine\system\pdo\connection\PDOCredentials#51190)
#1 plugins/AnSystem/src/anmine/system/SystemLoader(14): anmine\system\pdo\PDO->__construct(object anmine\system\SystemLoader#51222)
#2 pmsrc/src/plugin/PluginBase(119): anmine\system\SystemLoader->onEnable()
#3 pmsrc/src/plugin/PluginManager(463): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#4 pmsrc/src/Server(1472): pocketmine\plugin\PluginManager->enablePlugin(object anmine\system\SystemLoader#51222)
#5 pmsrc/src/Server(1078): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#55900)
#6 pmsrc/src/PocketMine(355): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[27] /home/anupdate/servers/s99/, string[35] /home/anupdate/servers/s99/plugins/)
#7 pmsrc/src/PocketMine(378): pocketmine\server()
#8 /home/anupdate/servers/s99/InCore.phar(168): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPloybJu.tar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show