Private internal function

This commit is contained in:
Dylan K. Taylor
2025-09-26 23:05:22 +01:00
parent 1c92d66ca4
commit 0abf1383ac

View File

@@ -341,7 +341,7 @@ class LoginPacketHandler extends PacketHandler{
/** /**
* @phpstan-return \Closure(object, string, mixed) : void * @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( 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) "$context: Unexpected JSON property for " . (new \ReflectionClass($object))->getShortName() . ": " . $name . " = " . var_export($value, return: true)
); );