BaguettePHP/mastodon-api

View on GitHub
tests/Grant/DummyGrant.php

Summary

Maintainability
A
0 mins
Test Coverage

Return type of auth() is undeclared type \Psr\Http\Message\ResponseInterface
Open

    public function auth(GuzzleHttpClient $http, AuthFactory $factory, Scope $scope)
Severity: Minor
Found in tests/Grant/DummyGrant.php by phan

Call to method __construct from undeclared class \GuzzleHttp\Psr7\Response
Open

        return new \GuzzleHttp\Psr7\Response;
Severity: Critical
Found in tests/Grant/DummyGrant.php by phan

Doc-block of $http in auth contains phpdoc param type \Baguette\Mastodon\Grant\Client which is incompatible with the param type \GuzzleHttp\ClientInterface declared in the signature
Open

     * @param  Client      $http
Severity: Minor
Found in tests/Grant/DummyGrant.php by phan

Parameter $http has undeclared type \GuzzleHttp\ClientInterface
Open

    public function auth(GuzzleHttpClient $http, AuthFactory $factory, Scope $scope)
Severity: Minor
Found in tests/Grant/DummyGrant.php by phan

Returning type \GuzzleHttp\Psr7\Response but auth() is declared to return \Psr\Http\Message\ResponseInterface
Open

        return new \GuzzleHttp\Psr7\Response;
Severity: Minor
Found in tests/Grant/DummyGrant.php by phan

There are no issues that match your filters.

Category
Status