Showing 316 of 316 total issues
Catching undeclared class \GuzzleHttp\Exception\GuzzleException
Open
Open
} catch (GuzzleException $guzzleException) {
- Exclude checks
Call to method isHit
from undeclared class \Psr\Cache\CacheItemInterface
Open
Open
if ($cacheItem->isHit()) {
- Exclude checks
Argument 2 (vars)
is ?string
but \sprintf()
takes float|int|string
Open
Open
$this->link->openTag(),
- Exclude checks
Reference to undeclared property \Prismic\Document\Fragment\LinkInterface->filename
Open
Open
$link->filename = isset($value->name) ? $value->name : null;
- Exclude checks
Call to method getRequest
from undeclared class \GuzzleHttp\Exception\GuzzleException
Open
Open
return $this->guzzleException->getRequest();
- Exclude checks
Return type of factory()
is undeclared type \Psr\Cache\CacheItemPoolInterface
Open
Open
public static function factory() : CacheItemPoolInterface
- Exclude checks
Expected an object instance when accessing an instance property, but saw an expression with type array
Open
Open
$value = isset($value->value) ? $value->value : $value;
- Exclude checks
Reference to undeclared property \Prismic\Document\Fragment\LinkInterface->filesize
Open
Open
$link->filesize = isset($value->size) ? (int) $value->size : null;
- Exclude checks
Argument 2 (vars)
is ?string
but \sprintf()
takes float|int|string
Open
Open
$this->openTag(),
- Exclude checks
Property \Prismic\Exception\ExpiredPreviewTokenException->response
has undeclared type \Psr\Http\Message\ResponseInterface
Open
Open
private $response;
- Exclude checks
Parameter $e
has undeclared type \GuzzleHttp\Exception\GuzzleException
Open
Open
public static function fromGuzzleException(GuzzleException $e) : self
- Exclude checks
Call to method getResponse
from undeclared class \GuzzleHttp\Exception\RequestException
Open
Open
$response = $e->getResponse();
- Exclude checks
Call to method getRequest
from undeclared class \GuzzleHttp\Exception\RequestException
Open
Open
$request = $e->getRequest();
- Exclude checks
@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
Open
public function after(string $documentId) : self
- Exclude checks
Return type of getCache()
is undeclared type \Psr\Cache\CacheItemPoolInterface
Open
Open
public function getCache() : CacheItemPoolInterface
- Exclude checks
Argument 2 (vars)
is ?string
but \sprintf()
takes float|int|string
Open
Open
$this->openTag(),
- Exclude checks
Call to undeclared method \stdClass::getData
Open
Open
$markup[] = $this->document->getData()->asHtml();
- Exclude checks
Call to method getResponse
from undeclared class \GuzzleHttp\Exception\RequestException
Open
Open
$apiResponse = $requestException->getResponse();
- Exclude checks
Argument 2 (vars)
is ?string
but \sprintf()
takes float|int|string
Open
Open
$this->openTag(),
- Exclude checks
Property \Prismic\Api->cache
has undeclared type \Psr\Cache\CacheItemPoolInterface
Open
Open
private $cache;
- Exclude checks