mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-15 19:46:20 +00:00
Private internal function
This commit is contained in:
@@ -341,7 +341,7 @@ class LoginPacketHandler extends PacketHandler{
|
||||
/**
|
||||
* @phpstan-return \Closure(object, string, mixed) : void
|
||||
*/
|
||||
protected function warnUndefinedJsonPropertyHandler(string $context) : \Closure{
|
||||
private function warnUndefinedJsonPropertyHandler(string $context) : \Closure{
|
||||
return fn(object $object, string $name, mixed $value) => $this->session->getLogger()->warning(
|
||||
"$context: Unexpected JSON property for " . (new \ReflectionClass($object))->getShortName() . ": " . $name . " = " . var_export($value, return: true)
|
||||
);
|
||||
|
Reference in New Issue
Block a user