Showing 316 of 316 total issues
@throws annotation of pageSize
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 pageSize(int $pageSize) : self
- Exclude checks
@throws annotation of orderings
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 orderings(string ...$fields) : self
- Exclude checks
Argument 3 (vars)
is ?string
but \sprintf()
takes float|int|string
Open
Open
return sprintf('/app/%s/%s', $link->getType(), $link->getUid());
- Exclude checks
Parameter $httpClient
has undeclared type ?\GuzzleHttp\ClientInterface
Open
Open
public static function get(
- Exclude checks
@throws annotation of getById
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 getById(string $id, array $options = []) :? DocumentInterface
- Exclude checks
@throws annotation of getByIds
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 getByIds(array $ids, array $options = []) : Response
- Exclude checks
Instantiation of abstract class \Prismic\Document\Fragment\AbstractScalarFragment
Open
Open
$fragment = new static();
- Exclude checks
Reference to undeclared property \Prismic\Document\Fragment\LinkInterface->height
Open
Open
$link->height = isset($value->height) ? (int) $value->height : null;
- Exclude checks
Argument 2 (vars)
is ?string
but \sprintf()
takes float|int|string
Open
Open
$this->openTag(),
- Exclude checks
Parameter $response
has undeclared type \Psr\Http\Message\ResponseInterface
Open
Open
public static function isTokenExpiryResponse(ResponseInterface $response) : bool
- Exclude checks
Argument 3 (previous)
is \GuzzleHttp\Exception\GuzzleException
but \Prismic\Exception\RequestFailureException::__construct()
takes ?\RuntimeException|?\Throwable
Open
Open
$exception = new static('Api Request Failed', 500, $e);
- Exclude checks
@throws annotation of lang
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 lang(string $lang) : self
- Exclude checks
@throws annotation of previewSession
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 previewSession(string $token, string $defaultUrl) : string
- Exclude checks
Reference to undeclared property \Prismic\Document\Fragment\AbstractScalarFragment->format
Open
Open
$fragment->format = 'Y-m-d';
- Exclude checks
Parameter $e
has undeclared type \GuzzleHttp\Exception\RequestException
Open
Open
protected static function fromGuzzleRequestException(RequestException $e) : self
- Exclude checks
Return type of getResponse()
is undeclared type ?\Psr\Http\Message\ResponseInterface
Open
Open
public function getResponse() :? ResponseInterface
- Exclude checks
Possibly zero references to use statement for classlike/namespace SearchForm
(\Prismic\SearchForm)
Open
Open
use Prismic\SearchForm;
- Exclude checks
Assigning ?\Prismic\DocumentInterface|\Prismic\DocumentInterface
to property but \Prismic\Sample\Finder->document
is \stdClass
Open
Open
$this->document = $document;
- Exclude checks
Call to undeclared method \stdClass::getId
Open
Open
$this->document->getId(),
- Exclude checks
Doc-block of $httpClient
in get
is phpdoc param type \GuzzleHttp\ClientInterface
which is not a permitted replacement of the nullable param type ?\GuzzleHttp\ClientInterface
declared in the signature ('?T' should be documented as 'T|null' or '?T') Open
Open
* @param ClientInterface $httpClient Custom Guzzle http client
- Exclude checks