BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

Doc-block of $router in router is phpdoc param type \Teto\Routing\Router which is not a permitted replacement of the nullable param type ?\Teto\Routing\Router declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

 * @param  Router $router
Severity: Minor
Found in sample/inc/functions.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

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

Saw unextractable annotation for comment '* @Return array'
Open

     * @Return array
Severity: Info
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

Class uses undeclared trait \Teto\Object\TypedProperty
Open

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

Call to method toArray from undeclared class \Teto\Object\Helper
Open

        return \Teto\Object\Helper::toArray($value);
Severity: Critical
Found in src/Entity/helpers.php by phan

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

            v::intVal()->min(0)->assert($options['max_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

Cannot modify read-only magic property \Baguette\Mastodon\Service\toot->media_ids defined at src/Service/Toot.php:14
Open

            $this->media_ids = $ids;
Severity: Minor
Found in src/Service/Toot.php by phan

Cannot access private property \Baguette\Mastodon\Mastodon->session defined at src/Mastodon.php:31
Open

    $response = $service->client->requestAPI($method, $path, $options, $service->session);
Severity: Critical
Found in src/functions.php by phan

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

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

Call to method __construct from undeclared class \Teto\Routing\Router
Open

router($router = new \Teto\Routing\Router($routes));
Severity: Critical
Found in sample/public/index.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 intType from undeclared class \Respect\Validation\Validator
Open

        v::intType()->min(0)->assert($created_at);
Severity: Critical
Found in src/Config/DotEnvStorage.php by phan

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

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

Class uses undeclared trait \Teto\Object\TypedProperty
Open

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

Doc-block of $scope in auth is phpdoc param type \Baguette\Mastodon\Service\Scope which is not a permitted replacement of the nullable param type ?\Baguette\Mastodon\Service\Scope declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

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