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 method request from undeclared class \GuzzleHttp\ClientInterface
Open

            $response = m\http()->request('POST', $create_app_path, $request_options);
Severity: Critical
Found in sample/inc/app.php by phan

Reference to undeclared property \Baguette\Mastodon\Service\toot->senstitive (Did you mean expr->sensitive)
Open

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

Call to undeclared method \Baguette\Mastodon\ClientTest::assertEquals
Open

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

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

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

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

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

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

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

Call to undeclared function \GuzzleHttp\default_user_agent()
Open

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

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

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

Class uses undeclared trait \Teto\Object\TypedProperty
Open

class Error_ extends Entity
Severity: Critical
Found in src/Entity/Error_.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/CodeGrant.php by phan

Class uses undeclared trait \Teto\Object\PrivateGetter
Open

final class Mastodon
Severity: Critical
Found in src/Mastodon.php by phan

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

            v::intVal()->min(0)->assert($options['since_id']);
Severity: Critical
Found in src/Requester.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

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

        v::stringType()->assert($toot_string);
Severity: Critical
Found in src/Service/Toot.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

Cannot access private property \Baguette\Mastodon\Mastodon->client defined at src/Mastodon.php:29
Open

    $response = $service->client->requestAPI($method, $path, $options, $service->session);
Severity: Critical
Found in src/functions.php by phan

Doc-block of $flash in last_flash is phpdoc param type array which is not a permitted replacement of the nullable param type ?array declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

 * @param array  $flash
Severity: Minor
Found in sample/inc/functions.php by phan

Reference to constant INFO from undeclared class \Monolog\Logger
Open

        $logger->pushHandler(new StreamHandler($fp, Logger::INFO, true, null, true));
Severity: Critical
Found in sample/inc/functions.php by phan
Severity
Category
Status
Source
Language