File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646use pocketmine \player \PlayerInfo ;
4747use pocketmine \player \XboxLivePlayerInfo ;
4848use pocketmine \Server ;
49+ use pocketmine \utils \Utils ;
4950use Ramsey \Uuid \Uuid ;
5051use Ramsey \Uuid \UuidInterface ;
5152use function chr ;
5657use function json_decode ;
5758use function md5 ;
5859use function ord ;
59- use function var_export ;
6060use const JSON_THROW_ON_ERROR ;
6161
6262/**
@@ -344,7 +344,7 @@ private function defaultJsonMapper(string $logContext) : \JsonMapper{
344344 */
345345 private function warnUndefinedJsonPropertyHandler (string $ context ) : \Closure {
346346 return fn (object $ object , string $ name , mixed $ value ) => $ this ->session ->getLogger ()->warning (
347- "$ context: Unexpected JSON property for " . (new \ReflectionClass ($ object ))->getShortName () . ": " . $ name . " = " . var_export ( $ value , return: true )
347+ "$ context: Unexpected JSON property for " . (new \ReflectionClass ($ object ))->getShortName () . ": " . Utils:: printable ( substr ( $ name, 0 , 80 ) )
348348 );
349349 }
350350}
You can’t perform that action at this time.
0 commit comments