diff --git a/module/Common/src/Response/PixelResponse.php b/module/Common/src/Response/PixelResponse.php index a19c1c85..cfd44ab1 100644 --- a/module/Common/src/Response/PixelResponse.php +++ b/module/Common/src/Response/PixelResponse.php @@ -26,7 +26,7 @@ class PixelResponse extends Response private function createBody(): StreamInterface { $body = new Stream('php://temp', 'wb+'); - $body->write(\base64_decode(self::BASE_64_IMAGE)); + $body->write((string) \base64_decode(self::BASE_64_IMAGE)); $body->rewind(); return $body; } diff --git a/phpstan.neon b/phpstan.neon index c67d210b..f1c8ab6d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -4,3 +4,4 @@ parameters: - module/Rest/src/Util/RestUtils.php ignoreErrors: - '#is not subtype of Throwable#' + - '#Cannot access offset#'