mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 08:26:06 +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
|
||||
*
|
||||
|
@ -23,7 +23,7 @@ trait Pagination
|
||||
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);
|
||||
|
||||
@ -48,7 +48,7 @@ trait Pagination
|
||||
}
|
||||
|
||||
/**
|
||||
* @phpstan-param class-string $class
|
||||
* @param class-string $class
|
||||
*/
|
||||
private function getPaginationUrl(string $url, string $class): ?PagingProvider
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ use Psr\Http\Message\ResponseInterface;
|
||||
final class ArrayHydrator implements Hydrator
|
||||
{
|
||||
/**
|
||||
* @phpstan-param class-string $class
|
||||
* @param class-string $class
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
|
@ -20,7 +20,7 @@ use Psr\Http\Message\ResponseInterface;
|
||||
interface Hydrator
|
||||
{
|
||||
/**
|
||||
* @phpstan-param class-string $class
|
||||
* @param class-string $class
|
||||
*
|
||||
* @throws HydrationException
|
||||
*/
|
||||
|
@ -23,7 +23,7 @@ use Psr\Http\Message\ResponseInterface;
|
||||
final class ModelHydrator implements Hydrator
|
||||
{
|
||||
/**
|
||||
* @phpstan-param class-string $class
|
||||
* @param class-string $class
|
||||
*
|
||||
* @return ResponseInterface
|
||||
*/
|
||||
|
@ -21,7 +21,7 @@ use Psr\Http\Message\ResponseInterface;
|
||||
final class NoopHydrator implements Hydrator
|
||||
{
|
||||
/**
|
||||
* @phpstan-param class-string $class
|
||||
* @param class-string $class
|
||||
*
|
||||
* @throws \LogicException
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user