BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

Class uses undeclared trait \Teto\Object\ReadOnly
Open

final class Mastodon
Severity: Critical
Found in src/Mastodon.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

Class uses undeclared trait \Teto\Object\PrivateGetter
Open

class Toot
Severity: Critical
Found in src/Service/Toot.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 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

Reference to undeclared class \Dotenv\Loader
Open

            parent::__construct($file_path);
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($username);
Severity: Critical
Found in src/Config/DotEnvStorage.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\Notification::setProperties
Open

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

Possibly zero references to use statement for classlike/namespace ClassStub (\Symfony\Component\VarDumper\Caster\ClassStub)
Open

use Symfony\Component\VarDumper\Caster\ClassStub;
Severity: Minor
Found in src/EntityCaster.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

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

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

Class uses undeclared trait \Teto\Object\PrivateGetter
Open

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

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

            v::intType()->assert($options['in_reply_to_id']);
Severity: Critical
Found in src/Service/Toot.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

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

        $this->assertEquals($expected['getUsernameAndPassword'], $actual->getUsernameAndPassword());
Severity: Critical
Found in tests/Config/DotEnvStorageTest.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

Parameter $client has undeclared type \GuzzleHttp\Client (Did you mean class \Baguette\Mastodon\Client)
Open

    public function setAPIHttpClient(\GuzzleHttp\Client $client)
Severity: Minor
Found in src/Client.php by phan

Class uses undeclared trait \Teto\Object\TypedProperty
Open

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

Doc-block of $http in auth contains phpdoc param type \Baguette\Mastodon\Grant\Client which is incompatible with the param type \GuzzleHttp\ClientInterface declared in the signature
Open

     * @param Client      $http
Severity: Minor
Found in src/Grant/Grant.php by phan
Severity
Category
Status
Source
Language