src/Grant/CodeGrant.php
Method getRedirectUrl
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static function getRedirectUrl(Mastodon\Client $client, Mastodon\Service\AuthFactory $auth, Scope $scope, $callback_uri, $state = null)
Parameter $http
has undeclared type \GuzzleHttp\ClientInterface
Open
Open
public function auth(Client $http, AuthFactory $factory, Scope $scope = null)
- Exclude checks
Call to method stringType
from undeclared class \Respect\Validation\Validator
Open
Open
v::stringType()->length(1, null)->assert($state);
- Exclude checks
Call to method request
from undeclared class \GuzzleHttp\ClientInterface
Open
Open
return $http->request('POST', static::getPathToOAuthToken($factory->client), [
- Exclude checks
Doc-block of $scope
in auth
is phpdoc param type \Baguette\Mastodon\Service\Scope
which is not a permitted replacement of the nullable param type ?\Baguette\Mastodon\Service\Scope
declared in the signature ('?T' should be documented as 'T|null' or '?T') Open
Open
* @param Scope $scope
- Exclude checks
Return type of auth()
is undeclared type \Psr\Http\Message\ResponseInterface
Open
Open
public function auth(Client $http, AuthFactory $factory, Scope $scope = null)
- Exclude checks