BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

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

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

     * @param  string
Severity: Info
Found in sample/inc/app.php by phan

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

    $callback_url = app\get_service_base_url(router()->makePath('auth_callback'));
Severity: Critical
Found in sample/inc/routes.php by phan

Property \Baguette\Mastodon\Client->oauth_http_client has undeclared type \GuzzleHttp\Client (Did you mean class \Baguette\Mastodon\Client)
Open

    private $oauth_http_client;
Severity: Minor
Found in src/Client.php by phan

Return type of getAPIHttpClient() is undeclared type \GuzzleHttp\Client (Did you mean class \Baguette\Mastodon\Client)
Open

    private function getAPIHttpClient()
Severity: Minor
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($access_token);
Severity: Critical
Found in src/Config/DotEnvStorage.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 Account extends Entity
Severity: Critical
Found in src/Entity/Account.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

            'in_reply_to_account_id' => $this->in_reply_to_account_id,
Severity: Minor
Found in src/Entity/Status.php by phan

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

            v::stringType()->length(1, null)->assert($state);
Severity: Critical
Found in src/Grant/CodeGrant.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 defined at src/Service/AuthFactory.php:15
Open

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

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

                v::intType()->assert($id);
Severity: Critical
Found in src/Service/Toot.php by phan

Cannot modify read-only magic property \Baguette\Mastodon\Service\toot->in_reply_to_id defined at src/Service/Toot.php:15
Open

            $this->in_reply_to_id = $options['in_reply_to_id'];
Severity: Minor
Found in src/Service/Toot.php by phan

Cannot modify read-only magic property \Baguette\Mastodon\Service\toot->visibility defined at src/Service/Toot.php:16
Open

            $this->visibility = $options['visibility'];
Severity: Minor
Found in src/Service/Toot.php by phan

Parameter $client has undeclared type ?\GuzzleHttp\ClientInterface
Open

function http(\GuzzleHttp\ClientInterface $client = null)
Severity: Minor
Found in src/functions.php by phan

Call to method __construct from undeclared class \Whoops\Run
Open

        $whoops = new \Whoops\Run;
Severity: Critical
Found in sample/inc/bootstrap.php by phan

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

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

Parameter $action has undeclared type \Teto\Routing\Action
Open

$routes['license'] = ['GET', '/license', function (Action $action) {
Severity: Minor
Found in sample/inc/routes.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
Severity
Category
Status
Source
Language