Showing 316 of 316 total issues
Call to method getItem
from undeclared class \Psr\Cache\CacheItemPoolInterface
Open
Open
return $this->cache->getItem($key);
- Exclude checks
Catching undeclared class \GuzzleHttp\Exception\GuzzleException
Open
Open
} catch (GuzzleException $exception) {
- Exclude checks
@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
Open
public function query($q, array $options = []) : Response
- Exclude checks
@throws annotation of getByUid
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
Open
public function getByUid(string $type, string $uid, array $options = []) :? DocumentInterface
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\Cache\Adapter\ArrayAdapter
Open
Open
return new ArrayAdapter();
- Exclude checks
Checking instanceof against undeclared class \GuzzleHttp\Exception\RequestException
Open
Open
if (! $this->guzzleException instanceof RequestException) {
- Exclude checks
@throws annotation of fetch
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
Open
public function fetch(string ...$fields) : self
- Exclude checks
Call to undeclared method \stdClass::getType
Open
Open
$this->document->getType()
- Exclude checks
Call to method request
from undeclared class \GuzzleHttp\ClientInterface
Open
Open
$response = $this->httpClient->request('GET', $token);
- Exclude checks
Catching undeclared class \GuzzleHttp\Exception\RequestException
Open
Open
} catch (RequestException $requestException) {
- Exclude checks
@throws annotation of getSingle
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
Open
public function getSingle(string $type, array $options = []) :? DocumentInterface
- Exclude checks
Checking instanceof against undeclared class \GuzzleHttp\Exception\RequestException
Open
Open
if ($e instanceof RequestException) {
- Exclude checks
Argument 3 (previous)
is \GuzzleHttp\Exception\RequestException
but \Prismic\Exception\RequestFailureException::__construct()
takes ?\RuntimeException|?\Throwable
Open
Open
$exception = new static($message, $code, $e);
- Exclude checks
Assigning \GuzzleHttp\Exception\RequestException
to property but \Prismic\Exception\RequestFailureException->guzzleException
is \GuzzleHttp\Exception\GuzzleException|null
Open
Open
$exception->guzzleException = $e;
- Exclude checks
Doc-block of $accessToken
in get
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
Open
* @param string $accessToken A permanent access token to use if your repository API is set to private
- Exclude checks
Return type of getEscapeHelper()
is undeclared type \Zend\Escaper\Escaper
Open
Open
private function getEscapeHelper() : Escaper
- Exclude checks
Call to method getBody
from undeclared class \Psr\Http\Message\ResponseInterface
Open
Open
$body = json_decode((string) $response->getBody(), true);
- Exclude checks
Return type of getApcCache()
is undeclared type \Psr\Cache\CacheItemPoolInterface
Open
Open
public static function getApcCache() : CacheItemPoolInterface
- Exclude checks
Returning type \Symfony\Component\Cache\Adapter\ApcuAdapter
but getApcCache()
is declared to return \Psr\Cache\CacheItemPoolInterface
Open
Open
return new ApcuAdapter(\str_replace('\\', '', __NAMESPACE__));
- Exclude checks
Reference to undeclared property \Prismic\Document\Fragment\LinkInterface->width
Open
Open
$link->width = isset($value->width) ? (int) $value->width : null;
- Exclude checks