BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

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

    public function auth(Client $http, AuthFactory $factory, Scope $scope = null)
Severity: Minor
Found in src/Grant/CodeGrant.php by phan

Call to method request from undeclared class \GuzzleHttp\ClientInterface
Open

        return $http->request('POST', static::getPathToOAuthToken($factory->client), [
Severity: Critical
Found in src/Grant/PasswordCredential.php by phan

Call to method intVal from undeclared class \Respect\Validation\Validator
Open

        v::intVal()->assert($account_id);
Severity: Critical
Found in src/Requester.php by phan

Class uses undeclared trait \Teto\Object\ReadOnly
Open

class Toot
Severity: Critical
Found in src/Service/Toot.php by phan

Call to method intType from undeclared class \Respect\Validation\Validator
Open

            v::intType()->assert($options['in_reply_to_id']);
Severity: Critical
Found in src/Service/Toot.php by phan

Call to method load from undeclared class \Dotenv\Dotenv
Open

    $dotenv->load();
Severity: Critical
Found in sample/inc/bootstrap.php by phan

Call to method info from undeclared class \Monolog\Logger
Open

    chrome_log()->info('session', $_SESSION);
Severity: Critical
Found in sample/inc/routes.php by phan

Call to undeclared function \GuzzleHttp\default_user_agent()
Open

            $user_agent = sprintf('%s; %s', self::USER_AGENT, \GuzzleHttp\default_user_agent());
Severity: Critical
Found in src/Client.php by phan

Call to method stringType from undeclared class \Respect\Validation\Validator
Open

        v::stringType()->not(v::contains("\n"))->assert($client_id);
Severity: Critical
Found in src/Config/DotEnvStorage.php by phan

Comment declares @property* $media_attachments multiple times
Open

class Status extends Entity
Severity: Info
Found in src/Entity/Status.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\Tag::setProperties
Open

        $this->setProperties($properties);
Severity: Critical
Found in src/Entity/Tag.php by phan

Parameter $response has undeclared type \Psr\Http\Message\ResponseInterface
Open

    private static function map($class, ResponseInterface $response)
Severity: Minor
Found in src/Requester.php by phan

Cannot modify read-only magic property \Baguette\Mastodon\Service\authorization->access_token defined at src/Service/Authorization.php:11
Open

        $this->access_token = $access_token;
Severity: Minor
Found in src/Service/Authorization.php by phan

Call to deprecated function \Baguette\Mastodon\credential() defined at src/functions.php:92
Open

        $grant = credential($options['credential']);
Severity: Minor
Found in src/functions.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\AccountTest::assertEquals
Open

        $this->assertEquals(isset($input['acct'])            ? $input['acct']            : null, $actual->acct);
Severity: Critical
Found in tests/Entity/AccountTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\InstanceTest::assertEquals
Open

        $this->assertEquals(isset($input['title']) ? $input['title'] : null, $actual->title);
Severity: Critical
Found in tests/Entity/InstanceTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\MentionTest::assertEquals
Open

        $this->assertEquals(isset($input['id'])       ? $input['id']       : null, $actual->id);
Severity: Critical
Found in tests/Entity/MentionTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\StatusTest::assertEquals
Open

        $this->assertEquals(isset($input['account']) ? $input['account'] : null, $actual->account);
Severity: Critical
Found in tests/Entity/StatusTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\StatusTest::assertEquals
Open

        $this->assertEquals(isset($input['sensitive'])    ? $input['sensitive']    : null, $actual->sensitive);
Severity: Critical
Found in tests/Entity/StatusTest.php by phan

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
Severity
Category
Status
Source
Language