menu
#9249598 SOFe\Timer\Context::store(): Argument #1 ($object) must be of type SOFe\Timer\Singleton, SOFe\Timer\MainClass given, called in phar:///root/plugins/pharynx-output-.phar/src/SOFe/Timer/MainClass.php on line 14

Submitted by PocketMine-MP 5.5.0

General information

Version: 5.5.0
Git commit: c8d357f4
Plugin involvement: Direct
Report date: 2023-09-19 16:53:46 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 8.1.23
JIT status: Not available
Operating system: linux
System banner: Linux vds2476244 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64

Error information

Warning: the Timer plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: SOFe\Timer\Context::store(): Argument #1 ($object) must be of type SOFe\Timer\Singleton, SOFe\Timer\MainClass given, called in phar:///root/plugins/pharynx-output-.phar/src/SOFe/Timer/MainClass.php on line 14
File: plugins/pharynx-output-.phar/src/SOFe/Timer/Context
Line: #39
Type: TypeError
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
    
public function __construct() {
$this->store($this);
}

public function get(string $class) : ?Singleton {
return $this->storage[$class] ?? null;
}

public function store(Singleton $object) : void {
$this->storage[get_class($object)] = $object;
}

public function store2(string $class) : void {
$object = new \ReflectionClass($class);

foreach ($object->getConstructor()->getParameters() as $param) {
$paramType = $param->getType();
if (!($paramType instanceof \ReflectionNamedType)) {
throw new RuntimeException;
#0 plugins/pharynx-output-.phar/src/SOFe/Timer/MainClass(14): SOFe\Timer\Context->store(object SOFe\Timer\MainClass#41632)
#1 pmsrc/src/plugin/PluginBase(119): SOFe\Timer\MainClass->onEnable()
#2 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1389): pocketmine\plugin\PluginManager->enablePlugin(object SOFe\Timer\MainClass#41632)
#4 pmsrc/src/Server(1033): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#41603)
#5 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[6] /root/, string[14] /root/plugins/)
#6 pmsrc/src/PocketMine(357): pocketmine\server()
#7 pmsrc(11): require(string[50] phar:///root/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show