BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

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

        $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
Severity: Critical
Found in sample/inc/bootstrap.php by phan

Return type of router() is undeclared type \Teto\Routing\Router
Open

function router(Router $router = null)
Severity: Minor
Found in sample/inc/functions.php by phan

Call to method __construct from undeclared class \Monolog\Handler\ChromePHPHandler
Open

        $handler = is_production() ? new NoopHandler : new ChromePHPHandler(Logger::INFO);
Severity: Critical
Found in sample/inc/functions.php by phan

Call to method info from undeclared class \Monolog\Logger
Open

    chrome_log()->info('Hello, World!');
Severity: Critical
Found in sample/inc/routes.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

Class uses undeclared trait \Teto\Object\TypedProperty
Open

class Application extends Entity
Severity: Critical
Found in src/Entity/Application.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

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

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

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

    public function auth(Client $http, AuthFactory $factory, Scope $scope)
Severity: Minor
Found in src/Grant/PasswordCredential.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 undeclared function \GuzzleHttp\json_decode() (Did you mean \json_decode() or \json_encode())
Open

    return Entity\map($class, \GuzzleHttp\json_decode($response->getBody(), true));
Severity: Critical
Found in src/functions.php by phan

Call to undeclared function \GuzzleHttp\json_decode() (Did you mean \json_decode() or \json_encode())
Open

        return \GuzzleHttp\json_decode($app, true);
Severity: Critical
Found in sample/inc/app.php by phan

Class uses undeclared trait \Teto\Object\ReadOnly
Open

class DotEnvStorage extends \Dotenv\Loader implements Storage
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_secret);
Severity: Critical
Found in src/Config/DotEnvStorage.php by phan

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

        $this->setProperties($properties);
Severity: Critical
Found in src/Entity/Card.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

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

Call to method getBody from undeclared class \Psr\Http\Message\ResponseInterface
Open

            \GuzzleHttp\json_decode($response->getBody(), true)
Severity: Critical
Found in src/Requester.php by phan

Class uses undeclared trait \Teto\Object\PrivateGetter
Open

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

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

        $this->assertEquals($expected['hostname'], $actual->getHostname());
Severity: Critical
Found in tests/ClientTest.php by phan
Severity
Category
Status
Source
Language