BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

Cannot modify read-only magic property \Baguette\Mastodon\Service\AuthFactory->grant defined at src/Service/AuthFactory.php:18
Open

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

Call to undeclared method \Baguette\Mastodon\Config\DotEnvStorageTest::assertEquals
Open

        $this->assertEquals($expected['getValues'], $actual->getValues());
Severity: Critical
Found in tests/Config/DotEnvStorageTest.php by phan

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

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

Call to undeclared method \Baguette\Mastodon\Config\DotEnvStorage::looksLikeSetter
Open

            if (!$this->isComment($line) && $this->looksLikeSetter($line)) {
Severity: Critical
Found in src/Config/DotEnvStorage.php by phan

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

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

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

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

Reference to constant PREFIX_PROTECTED from undeclared class \Symfony\Component\VarDumper\Caster\Caster
Open

            $a[Caster::PREFIX_PROTECTED.'property_types'] = $types;
Severity: Critical
Found in src/EntityCaster.php by phan

Parameter $http has undeclared type \GuzzleHttp\ClientInterface
Open

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

Return type of getFollowRequests() is undeclared type \Baguette\Mastodon\Entity\accounts[] (Did you mean class \Baguette\Mastodon\Entity\Account)
Open

    public static function getFollowRequests(Client $client, SessionStorage $session, $options = [])
Severity: Minor
Found in src/Requester.php by phan

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

            v::intVal()->min(0)->assert($options['max_id']);
Severity: Critical
Found in src/Requester.php by phan

Returning type \Baguette\Mastodon\Entity\Entity|\Baguette\Mastodon\Entity\Entity[] but getFollowRequests() is declared to return \Baguette\Mastodon\Entity\accounts[]
Open

        return static::map(
Severity: Minor
Found in src/Requester.php by phan

Possibly zero references to use statement for classlike/namespace Mastodon (\Baguette\Mastodon)
Open

use Baguette\Mastodon;
Severity: Minor
Found in src/Service/SessionStorage.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param Scope|string|string[]': after Scope|string|string[], did not see an element name (will guess based on comment order)
Open

 * @param  Scope|string|string[]
Severity: Info
Found in src/functions.php by phan

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

function request(Mastodon $service, $method, $path, $options, $class = null)
Severity: Minor
Found in src/functions.php by phan

Call to undeclared method \Baguette\Mastodon\Config\DotEnvStorageTest::assertEquals
Open

        $this->assertEquals($expected['getClientIdAndSecret'], $actual->getClientIdAndSecret());
Severity: Critical
Found in tests/Config/DotEnvStorageTest.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\ApplicationTest::assertEquals
Open

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

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

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

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

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

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

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