BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

Class uses undeclared trait \Teto\Object\TypedProperty
Open

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

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

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

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

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

Return type of http() is undeclared type \GuzzleHttp\ClientInterface
Open

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

Call to undeclared method \Baguette\Mastodon\Config\DotEnvStorageTest::assertEquals
Open

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

Call to undeclared method \Baguette\Mastodon\Entity\AccountTest::assertEquals
Open

        $this->assertEquals(isset($input['id'])              ? $input['id']              : null, $actual->id);
Severity: Critical
Found in tests/Entity/AccountTest.php by phan

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

    chrome_log()->info("redirect", ['state' => $state, 'session' => $_SESSION]);
Severity: Critical
Found in sample/inc/routes.php by phan

Call to method __construct from undeclared class \GuzzleHttp\Client (Did you mean class \Baguette\Mastodon\Client)
Open

            $this->api_http_client = new \GuzzleHttp\Client([
Severity: Critical
Found in src/Client.php by phan

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

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

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

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

Class uses undeclared trait \Teto\Object\TypedProperty
Open

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

Parameter $stub has undeclared type \Symfony\Component\VarDumper\Cloner\Stub
Open

    public function __invoke(Entity $c, array $_, Stub $stub, $isNested)
Severity: Minor
Found in src/EntityCaster.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

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

        v::intVal()->assert($status_id);
Severity: Critical
Found in src/Requester.php by phan

Cannot modify read-only magic property \Baguette\Mastodon\Service\AuthFactory->client_secret defined at src/Service/AuthFactory.php:17
Open

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

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

        return Authorization::fromObject(\GuzzleHttp\json_decode($res->getBody()));
Severity: Critical
Found in src/Service/AuthFactory.php by phan

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

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

Class uses undeclared trait \Teto\Object\PrivateGetter
Open

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

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

function request(Mastodon $service, $method, $path, $options, $class = null)
Severity: Minor
Found in src/functions.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
Severity
Category
Status
Source
Language