mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 16:36:07 +03:00
Use @param instead of @phpstan-param since it works with Psalm as well.
See discussion here: https://github.com/mailgun/mailgun-php/pull/771#issuecomment-901337117
This commit is contained in:
parent
fe6a21e1d2
commit
6f678bf09e
@ -59,7 +59,7 @@ abstract class HttpApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @phpstan-param class-string $class
|
* @param class-string $class
|
||||||
*
|
*
|
||||||
* @return mixed|ResponseInterface
|
* @return mixed|ResponseInterface
|
||||||
*
|
*
|
||||||
|
@ -23,7 +23,7 @@ trait Pagination
|
|||||||
abstract protected function httpGet(string $path, array $parameters = [], array $requestHeaders = []): ResponseInterface;
|
abstract protected function httpGet(string $path, array $parameters = [], array $requestHeaders = []): ResponseInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @phpstan-param class-string $className
|
* @param class-string $className
|
||||||
*/
|
*/
|
||||||
abstract protected function hydrateResponse(ResponseInterface $response, string $className);
|
abstract protected function hydrateResponse(ResponseInterface $response, string $className);
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ trait Pagination
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @phpstan-param class-string $class
|
* @param class-string $class
|
||||||
*/
|
*/
|
||||||
private function getPaginationUrl(string $url, string $class): ?PagingProvider
|
private function getPaginationUrl(string $url, string $class): ?PagingProvider
|
||||||
{
|
{
|
||||||
|
@ -22,7 +22,7 @@ use Psr\Http\Message\ResponseInterface;
|
|||||||
final class ArrayHydrator implements Hydrator
|
final class ArrayHydrator implements Hydrator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @phpstan-param class-string $class
|
* @param class-string $class
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -20,7 +20,7 @@ use Psr\Http\Message\ResponseInterface;
|
|||||||
interface Hydrator
|
interface Hydrator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @phpstan-param class-string $class
|
* @param class-string $class
|
||||||
*
|
*
|
||||||
* @throws HydrationException
|
* @throws HydrationException
|
||||||
*/
|
*/
|
||||||
|
@ -23,7 +23,7 @@ use Psr\Http\Message\ResponseInterface;
|
|||||||
final class ModelHydrator implements Hydrator
|
final class ModelHydrator implements Hydrator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @phpstan-param class-string $class
|
* @param class-string $class
|
||||||
*
|
*
|
||||||
* @return ResponseInterface
|
* @return ResponseInterface
|
||||||
*/
|
*/
|
||||||
|
@ -21,7 +21,7 @@ use Psr\Http\Message\ResponseInterface;
|
|||||||
final class NoopHydrator implements Hydrator
|
final class NoopHydrator implements Hydrator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @phpstan-param class-string $class
|
* @param class-string $class
|
||||||
*
|
*
|
||||||
* @throws \LogicException
|
* @throws \LogicException
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user