netglue/prismic-php-kit

View on GitHub

Showing 316 of 316 total issues

Argument 1 (e) is \GuzzleHttp\Exception\RequestException|\Throwable but \Prismic\Exception\RequestFailureException::fromGuzzleException() takes \GuzzleHttp\Exception\GuzzleException defined at /code/src/Prismic/Exception/RequestFailureException.php:25
Open

            throw Exception\RequestFailureException::fromGuzzleException($requestException);
Severity: Minor
Found in src/Prismic/Api.php by phan

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

        if (isset($value->value)) {
Severity: Critical
Found in src/Prismic/Document/Fragment/RichText.php by phan

Call to method __construct from undeclared class \GuzzleHttp\Psr7\Uri
Open

        $url = new Uri($this->url);
Severity: Critical
Found in src/Prismic/Api.php by phan

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

                $this->link->closeTag()

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

            $value = $value->value;
Severity: Critical
Found in src/Prismic/Document/Fragment/RichText.php by phan

Return type of apiDataCacheItem() is undeclared type \Psr\Cache\CacheItemInterface
Open

    private function apiDataCacheItem() : CacheItemInterface
Severity: Minor
Found in src/Prismic/Api.php by phan

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

            $this->closeTag()

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

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

@throws annotation of set 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 set(string $key, $value) : self
Severity: Minor
Found in src/Prismic/SearchForm.php by phan

Reference to undeclared property \Prismic\Document\Fragment\AbstractScalarFragment->format
Open

        $fragment->format = 'c';
Severity: Minor
Found in src/Prismic/Document/Fragment/Date.php by phan

@throws annotation of page 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 page(int $page) : self
Severity: Minor
Found in src/Prismic/SearchForm.php by phan

Call to method escapeHtmlAttr from undeclared class \Zend\Escaper\Escaper
Open

        return $this->getEscapeHelper()->escapeHtmlAttr($value);

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

            $this->closeTag()

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

            $this->closeTag()

Parameter $response has undeclared type \Psr\Http\Message\ResponseInterface
Open

    public static function fromResponse(ResponseInterface $response) :? self

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

     * @param string $rel       the rel if there's one
Severity: Minor
Found in src/Prismic/Form.php by phan

@throws annotation of count 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 count() :? int
Severity: Minor
Found in src/Prismic/SearchForm.php by phan

Catching undeclared class \Psr\Cache\CacheException
Open

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

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

        $cacheItem->set($data);
Severity: Critical
Found in src/Prismic/Api.php by phan

Call to method save from undeclared class \Psr\Cache\CacheItemPoolInterface
Open

        $this->cache->save($cacheItem);
Severity: Critical
Found in src/Prismic/Api.php by phan
Severity
Category
Status
Source
Language