menu
#268 Declaration of callable `function ( int $currentTick ) : void` must be compatible with `function ( )`

Submitted by PocketMine-MP 5.22.1+dev.2082

General information

Version: 5.22.1+dev.2082
Git commit: 422f7837
Plugin involvement: Indirect
Report date: 2024-12-18 14:50:28 +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 AnEvents plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Thread: Main
Message: Declaration of callable `function ( int $currentTick ) : void` must be compatible with `function ( )`
File: pmsrc/src/utils/Utils
Line: #578
Type: TypeError
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
	 *
* @throws \DaveRandom\CallbackValidator\InvalidCallbackException
* @throws \TypeError
*/
public static function validateCallableSignature(callable|CallbackType $signature, callable $subject) : void{
if(!($signature instanceof CallbackType)){
$signature = CallbackType::createFromCallable($signature);
}
if(!$signature->isSatisfiedBy($subject)){
throw new \TypeError("Declaration of callable `" . CallbackType::createFromCallable($subject) . "` must be compatible with `" . $signature . "`");
}
}

/**
* @phpstan-template TMemberType
* @phpstan-param array<mixed, TMemberType> $array
* @phpstan-param \Closure(TMemberType) : void $validator
*/
public static function validateArrayValueType(array $array, \Closure $validator) : void{
foreach($array as $k => $v){
#0 pmsrc/src/scheduler/ClosureTask(49): pocketmine\utils\Utils::validateCallableSignature(object DaveRandom\CallbackValidator\CallbackType#81272, object Closure#81247)
#1 plugins/AnEvents/src/anmine/events/EventsLoader(39): pocketmine\scheduler\ClosureTask->__construct(object Closure#81247)
#2 plugins/AnEvents/src/anmine/events/EventsLoader(19): anmine\events\EventsLoader->runSchedulers()
#3 pmsrc/src/plugin/PluginBase(119): anmine\events\EventsLoader->onEnable()
#4 pmsrc/src/plugin/PluginManager(463): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#5 pmsrc/src/Server(1472): pocketmine\plugin\PluginManager->enablePlugin(object anmine\events\EventsLoader#51199)
#6 pmsrc/src/Server(1089): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#55902)
#7 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/)
#8 pmsrc/src/PocketMine(378): pocketmine\server()
#9 /home/anupdate/servers/s99/InCore.phar(168): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPLNJavx.tar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show