BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

Call to undeclared method \Baguette\Mastodon\Config\DotEnvStorage::isComment
Open

            if ($this->isComment($line) || !$this->looksLikeSetter($line)) {
Severity: Critical
Found in src/Config/DotEnvStorage.php by phan

Parameter $http has undeclared type \GuzzleHttp\ClientInterface
Open

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

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->created_at defined at src/Service/Authorization.php:14
Open

            $this->created_at = (new \DateTimeImmutable)->setTimeStamp($created_at);
Severity: Minor
Found in src/Service/Authorization.php by phan

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

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

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

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

Possibly zero references to use statement for classlike/namespace v (\Respect\Validation\Validator)
Open

    use Respect\Validation\Validator as v;
Severity: Minor
Found in sample/inc/app.php by phan

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

            app_log()->debug('create_app', ['app' => $app]);
Severity: Critical
Found in sample/inc/app.php by phan

Parameter $router has undeclared type ?\Teto\Routing\Router
Open

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

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

        return $this->getAPIHttpClient()->request($method, $path, $request_options);
Severity: Critical
Found in src/Client.php by phan

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

            v::boolType()->assert($options['read_only']);
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 undeclared method \Baguette\Mastodon\Entity\Application::setProperties
Open

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

Class uses undeclared trait \Teto\Object\TypedProperty
Open

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

Parameter $http has undeclared type \GuzzleHttp\ClientInterface
Open

    abstract public function auth(GuzzleHttpClient $http, AuthFactory $factory, Scope $scope);
Severity: Minor
Found in src/Grant/Grant.php by phan

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

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

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

        $this->assertEquals(isset($input['locked'])          ? $input['locked']          : null, $actual->locked);
Severity: Critical
Found in tests/Entity/AccountTest.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

Return type of app_log() is undeclared type \Monolog\Logger
Open

function app_log()
Severity: Minor
Found in sample/inc/functions.php by phan
Severity
Category
Status
Source
Language