0
0
mirror of https://github.com/pmmp/PocketMine-MP.git synced 2024-11-24 06:16:13 +00:00
PocketMine-MP/tests/phpstan/stubs/JsonMapper.stub
Dylan K. Taylor 83a3adecff LoginPacket: use netresearch/jsonmapper for login data decoding
this makes retrieval static analysis friendly without extra steps.
2020-03-23 22:00:13 +00:00

20 lines
354 B
Plaintext

<?php
//possible bug in phpstan requires this to be defined here
class JsonMapper_Exception extends \Exception{}
class JsonMapper{
/**
* @template TModel of object
*
* @param mixed[]|object $json
* @param TModel $object
*
* @return TModel
*
* @throws JsonMapper_Exception
*/
public function map($json, object $object) : object{}
}