0
0
mirror of https://github.com/pmmp/PocketMine-MP.git synced 2025-05-29 11:53:33 +00:00
Files
PocketMine-MP/tests/phpstan/stubs/JsonMapper.stub

20 lines
354 B
Plaintext
Raw Normal View History

<?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{}
}