castResponseToType()
castResponseToType(\Psr\Http\Message\ResponseInterface $response, string|null $type = null) : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
Parameters
\Psr\Http\Message\ResponseInterface | $response | |
string|null | $type |
Throws
- \EasyWeChat\Kernel\Exceptions\InvalidConfigException