BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

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 undeclared method \Baguette\Mastodon\Config\DotEnvStorage::normaliseEnvironmentVariable
Open

            list($key, $val) = $this->normaliseEnvironmentVariable($line, '');
Severity: Critical
Found in src/Config/DotEnvStorage.php by phan

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

        $this->setProperties(mapValues($properties, [
Severity: Critical
Found in src/Entity/Account.php by phan

Class implements undeclared interface \Teto\Object\ToArrayInterface
Open

abstract class Entity implements \Teto\Object\ToArrayInterface
Severity: Critical
Found in src/Entity/Entity.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

Class uses undeclared trait \Teto\Object\PrivateGetter
Open

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

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

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

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

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

Saw an @param annotation for scopes, but it was not found in the param list of function __construct($toot_string, array $options)
Open

     * @param string[] $scopes
Severity: Info
Found in src/Service/Toot.php by phan

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

            v::bool()->assert($options['senstitive']);
Severity: Critical
Found in src/Service/Toot.php by phan

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

    $dotenv = new Dotenv\Dotenv(dirname(__DIR__));
Severity: Critical
Found in sample/inc/bootstrap.php by phan

@throws type of __construct has undeclared type \Dotenv\Exception\InvalidPathException
Open

    public function __construct($file_path, $options = [])
Severity: Minor
Found in src/Config/DotEnvStorage.php by phan

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

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

Return type of getFollowRequests() is undeclared type \Baguette\Mastodon\Entity\accounts[] (Did you mean class \Baguette\Mastodon\Entity\Account)
Open

    public static function getFollowRequests(Client $client, SessionStorage $session, $options = [])
Severity: Minor
Found in src/Requester.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

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

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

Reference to instance property param from undeclared class \Teto\Routing\Action
Open

    $acct_input = $action->param['acct'];
Severity: Minor
Found in sample/inc/routes.php by phan

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

    private $api_http_client;
Severity: Minor
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($access_token);
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
Severity
Category
Status
Source
Language