BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

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

Call to undeclared method \Baguette\Mastodon\Grant\GrantTest::assertEquals
Open

        $this->assertEquals($expected, DummyGrant::getFormParamsWithSecret($factory));
Severity: Critical
Found in tests/Grant/GrantTest.php by phan

Call to undeclared method \Baguette\Mastodon\Service\TootTest::assertEquals
Open

        $this->assertEquals(isset($options['media_ids'])      ? $options['media_ids']      : [],   $actual->media_ids);
Severity: Critical
Found in tests/Service/TootTest.php by phan

Call to undeclared method \Baguette\Mastodon\Grant\NoopGrantTest::assertInstanceOf
Open

        $this->assertInstanceOf(Grant::class, $actual);
Severity: Critical
Found in tests/Grant/NoopGrantTest.php by phan

Call to method append from undeclared class \GuzzleHttp\Handler\MockHandler
Open

        $this->guzzle_mock_handler->append($response);
Severity: Critical
Found in tests/RequesterTestCase.php by phan

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

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

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

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

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

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

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

        $this->assertEquals($expected['toArray'], toArrayValue($actual));
Severity: Critical
Found in tests/Entity/CardTest.php by phan

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

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

Call to undeclared method \Baguette\Mastodon\functions\SessionTest::assertInstanceOf
Open

        $this->assertInstanceOf(SessionStorage::class, $actual->session);
Severity: Critical
Found in tests/functions/SessionTest.php by phan

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

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

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

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

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

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

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

        $this->assertEquals($expected['toArray'], toArrayValue($actual));
Severity: Critical
Found in tests/Entity/Error_Test.php by phan

Reference to undeclared property \Baguette\Mastodon\Entity\Status->in_reply_to_account_id (Did you mean expr->in_reply_to_accountid)
Open

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

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

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

Static call to undeclared method \Baguette\Mastodon\TestCase::setUp
Open

        parent::setUp();
Severity: Critical
Found in tests/RequesterTestCase.php by phan

Call to method __construct from undeclared class \GuzzleHttp\Handler\MockHandler
Open

        $this->guzzle_mock_handler = new MockHandler;
Severity: Critical
Found in tests/RequesterTestCase.php by phan

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

        $this->assertEquals(isset($input['created_at']) ? new \DateTimeImmutable($input['created_at']) : null, $actual->created_at);
Severity: Critical
Found in tests/Entity/AccountTest.php by phan
Severity
Category
Status
Source
Language