menu
#280 Cannot assign non-thread-safe value of type PDO to thread-safe class property anmine\system\pdo\connection\PDOConnection::$connection

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 22:05:22 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 8 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: AsyncWorker#0
Message: Cannot assign non-thread-safe value of type PDO to thread-safe class property anmine\system\pdo\connection\PDOConnection::$connection
File: plugins/AnSystem/src/anmine/system/pdo/connection/PDOConnection
Line: #27
Type: pmmp\thread\NonThreadSafeValueError
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
        private readonly int            $reconnectAttempts = 3
)
{
}

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(),
[
PDODriver::ATTR_ERRMODE => PDODriver::ERRMODE_EXCEPTION,
PDODriver::ATTR_DEFAULT_FETCH_MODE => PDODriver::FETCH_ASSOC,
PDODriver::ATTR_PERSISTENT => true
]
);
return;
#0 /home/anupdate/servers/s99/plugins/AnSystem/src/anmine/system/pdo/connection/PDOConnection(49): anmine\system\pdo\connection\PDOConnection->connect()
#1 /home/anupdate/servers/s99/plugins/AnSystem/src/anmine/system/pdo/task/PDOTask(25): anmine\system\pdo\connection\PDOConnection->getConnection()
#2 pmsrc/src/scheduler/AsyncTask(81): anmine\system\pdo\task\PDOTask->onRun()
#3 (): pocketmine\scheduler\AsyncTask->run()

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show