BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

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

        $logger = new \Monolog\Logger('');
Severity: Critical
Found in sample/inc/functions.php by phan

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

            chrome_log()->info('request', [
Severity: Critical
Found in sample/inc/app.php by phan

Call to method __construct from undeclared class \Whoops\Handler\PrettyPageHandler
Open

        $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
Severity: Critical
Found in sample/inc/bootstrap.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

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

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

        $handler = is_production() ? new NoopHandler : new ChromePHPHandler(Logger::INFO);
Severity: Critical
Found in sample/inc/functions.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['auth_callback'] = ['GET', '/auth/callback', function (Action $action) {
Severity: Minor
Found in sample/inc/routes.php by phan

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

$routes['#404'] = function (Action $action) {
Severity: Minor
Found in sample/inc/routes.php by phan

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

$routes['index'] = ['GET', '/', function (Action $action) {
Severity: Minor
Found in sample/inc/routes.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 match from undeclared class \Teto\Routing\Router
Open

$action = $router->match($_SERVER['REQUEST_METHOD'], parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
Severity: Critical
Found in sample/public/index.php by phan

Call to method contains 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 stringType 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 method stringType from undeclared class \Respect\Validation\Validator
Open

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

Call to method stringType 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 Account extends Entity
Severity: Critical
Found in src/Entity/Account.php by phan

Class uses undeclared trait \Teto\Object\TypedProperty
Open

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

Parameter $http has undeclared type \GuzzleHttp\ClientInterface
Open

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

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

        $this->access_token = $access_token;
Severity: Minor
Found in src/Service/Authorization.php by phan
Severity
Category
Status
Source
Language