BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

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

            $this->created_at = (new \DateTimeImmutable)->setTimeStamp($created_at);
Severity: Minor
Found in src/Service/Authorization.php by phan

Call to method __construct from undeclared class \Teto\Routing\Router
Open

router($router = new \Teto\Routing\Router($routes));
Severity: Critical
Found in sample/public/index.php by phan

Class uses undeclared trait \Teto\Object\TypedProperty
Open

class Tag extends Entity
Severity: Critical
Found in src/Entity/Tag.php by phan

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

            $a[Caster::PREFIX_DYNAMIC.$key] = $prop;
Severity: Critical
Found in src/EntityCaster.php by phan

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

            v::stringType()->assert($update_data['display_name']);
Severity: Critical
Found in src/Requester.php by phan

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

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

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

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

Doc-block of $scope in __construct contains phpdoc param type string[] which is incompatible with the param type ?\Baguette\Mastodon\Service\Scope declared in the signature
Open

     * @param string[] $scope
Severity: Minor
Found in src/Service/Authorization.php by phan

Class uses undeclared trait \Teto\Object\PrivateGetter
Open

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

Call to method request from undeclared class \GuzzleHttp\Client (Did you mean class \Baguette\Mastodon\Client)
Open

        return $this->getAPIHttpClient()->request($method, $path, $request_options);
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($app_name);
Severity: Critical
Found in src/Config/DotEnvStorage.php by phan

Call to method contains 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

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

Parameter $stub has undeclared type \Symfony\Component\VarDumper\Cloner\Stub
Open

    public function __invoke(Entity $c, array $_, Stub $stub, $isNested)
Severity: Minor
Found in src/EntityCaster.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

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

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

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

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

Class uses undeclared trait \Teto\Object\TypedProperty
Open

class Context extends Entity
Severity: Critical
Found in src/Entity/Context.php by phan

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

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

Class uses undeclared trait \Teto\Object\TypedProperty
Open

class Notification extends Entity
Severity: Critical
Found in src/Entity/Notification.php by phan
Severity
Category
Status
Source
Language