netglue/prismic-php-kit

View on GitHub

Showing 316 of 316 total issues

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

@throws annotation of query 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 query($q, array $options = []) : Response
Severity: Minor
Found in src/Prismic/Api.php by phan

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

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

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

            $this->escapeHelper = new Escaper;

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

    public static function fromGuzzleException(GuzzleException $e) : self

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

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

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

        $this->api->getCache()->save($cacheItem);
Severity: Critical
Found in src/Prismic/SearchForm.php by phan

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

            $json = $cacheItem->get();
Severity: Critical
Found in src/Prismic/SearchForm.php by phan

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

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

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

            $cacheItem->expiresAfter($cacheDuration);
Severity: Critical
Found in src/Prismic/SearchForm.php by phan

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

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

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

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

            return $this->api->getCache()->getItem($key);
Severity: Critical
Found in src/Prismic/SearchForm.php by phan

Catching undeclared class \Psr\Cache\CacheException
Open

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

Call to method request from undeclared class \GuzzleHttp\ClientInterface
Open

            $response = $this->api->getHttpClient()->request('GET', $url);
Severity: Critical
Found in src/Prismic/SearchForm.php by phan

Catching undeclared class \GuzzleHttp\Exception\GuzzleException
Open

        } catch (GuzzleException $guzzleException) {
Severity: Critical
Found in src/Prismic/SearchForm.php by phan
Severity
Category
Status
Source
Language