netglue/prismic-php-kit

View on GitHub

Showing 316 of 316 total issues

Catching undeclared class \GuzzleHttp\Exception\GuzzleException
Open

        } catch (GuzzleException $guzzleException) {
Severity: Critical
Found in src/Prismic/Api.php by phan

Call to method isHit from undeclared class \Psr\Cache\CacheItemInterface
Open

        if ($cacheItem->isHit()) {
Severity: Critical
Found in src/Prismic/Api.php by phan

Argument 2 (vars) is ?string but \sprintf() takes float|int|string
Open

                $this->link->openTag(),

Reference to undeclared property \Prismic\Document\Fragment\LinkInterface->filename
Open

        $link->filename = isset($value->name) ? $value->name : null;

Call to method getRequest from undeclared class \GuzzleHttp\Exception\GuzzleException
Open

        return $this->guzzleException->getRequest();

Return type of factory() is undeclared type \Psr\Cache\CacheItemPoolInterface
Open

    public static function factory() : CacheItemPoolInterface
Severity: Minor
Found in src/Prismic/Cache/DefaultCache.php by phan

Expected an object instance when accessing an instance property, but saw an expression with type array
Open

        $value = isset($value->value) ? $value->value : $value;
Severity: Critical
Found in src/Prismic/Document/Fragment/Group.php by phan

Reference to undeclared property \Prismic\Document\Fragment\LinkInterface->filesize
Open

        $link->filesize = isset($value->size) ? (int) $value->size : null;

Argument 2 (vars) is ?string but \sprintf() takes float|int|string
Open

            $this->openTag(),

Property \Prismic\Exception\ExpiredPreviewTokenException->response has undeclared type \Psr\Http\Message\ResponseInterface
Open

    private $response;

Parameter $e has undeclared type \GuzzleHttp\Exception\GuzzleException
Open

    public static function fromGuzzleException(GuzzleException $e) : self

Call to method getResponse from undeclared class \GuzzleHttp\Exception\RequestException
Open

        $response = $e->getResponse();

Call to method getRequest from undeclared class \GuzzleHttp\Exception\RequestException
Open

        $request  = $e->getRequest();

@throws annotation of after has suspicious interface type \Prismic\Exception\exceptioninterface for an @throws annotation, expected class (PHP allows interfaces to be caught, so this might be intentional)
Open

    public function after(string $documentId) : self
Severity: Minor
Found in src/Prismic/SearchForm.php by phan

Return type of getCache() is undeclared type \Psr\Cache\CacheItemPoolInterface
Open

    public function getCache() : CacheItemPoolInterface
Severity: Minor
Found in src/Prismic/Api.php by phan

Argument 2 (vars) is ?string but \sprintf() takes float|int|string
Open

            $this->openTag(),

Call to undeclared method \stdClass::getData
Open

            $markup[] = $this->document->getData()->asHtml();
Severity: Critical
Found in samples/document-explorer.php by phan

Call to method getResponse from undeclared class \GuzzleHttp\Exception\RequestException
Open

            $apiResponse = $requestException->getResponse();
Severity: Critical
Found in src/Prismic/Api.php by phan

Argument 2 (vars) is ?string but \sprintf() takes float|int|string
Open

            $this->openTag(),

Property \Prismic\Api->cache has undeclared type \Psr\Cache\CacheItemPoolInterface
Open

    private $cache;
Severity: Minor
Found in src/Prismic/Api.php by phan
Severity
Category
Status
Source
Language