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
Open
throw Exception\RequestFailureException::fromGuzzleException($requestException);
- Exclude checks
Expected an object instance when accessing an instance property, but saw an expression with type array
Open
Open
if (isset($value->value)) {
- Exclude checks
Call to method __construct
from undeclared class \GuzzleHttp\Psr7\Uri
Open
Open
$url = new Uri($this->url);
- Exclude checks
Argument 4 (vars)
is ?string
but \sprintf()
takes float|int|string
Open
Open
$this->link->closeTag()
- Exclude checks
Expected an object instance when accessing an instance property, but saw an expression with type array
Open
Open
$value = $value->value;
- Exclude checks
Return type of apiDataCacheItem()
is undeclared type \Psr\Cache\CacheItemInterface
Open
Open
private function apiDataCacheItem() : CacheItemInterface
- Exclude checks
Argument 4 (vars)
is ?string
but \sprintf()
takes float|int|string
Open
Open
$this->closeTag()
- Exclude checks
Return type of getArrayCache()
is undeclared type \Psr\Cache\CacheItemPoolInterface
Open
Open
public static function getArrayCache() : CacheItemPoolInterface
- Exclude checks
@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
Open
public function set(string $key, $value) : self
- Exclude checks
Reference to undeclared property \Prismic\Document\Fragment\AbstractScalarFragment->format
Open
Open
$fragment->format = 'c';
- Exclude checks
@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
Open
public function page(int $page) : self
- Exclude checks
Call to method escapeHtmlAttr
from undeclared class \Zend\Escaper\Escaper
Open
Open
return $this->getEscapeHelper()->escapeHtmlAttr($value);
- Exclude checks
Argument 4 (vars)
is ?string
but \sprintf()
takes float|int|string
Open
Open
$this->closeTag()
- Exclude checks
Argument 4 (vars)
is ?string
but \sprintf()
takes float|int|string
Open
Open
$this->closeTag()
- Exclude checks
Parameter $response
has undeclared type \Psr\Http\Message\ResponseInterface
Open
Open
public static function fromResponse(ResponseInterface $response) :? self
- Exclude checks
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
Open
* @param string $rel the rel if there's one
- Exclude checks
@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
Open
public function count() :? int
- Exclude checks
Catching undeclared class \Psr\Cache\CacheException
Open
Open
} catch (CacheException $cacheException) {
- Exclude checks
Call to method set
from undeclared class \Psr\Cache\CacheItemInterface
Open
Open
$cacheItem->set($data);
- Exclude checks
Call to method save
from undeclared class \Psr\Cache\CacheItemPoolInterface
Open
Open
$this->cache->save($cacheItem);
- Exclude checks