From c79ca1d13c73228db42c652e291f1fc5a16754c6 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Wed, 4 Jul 2018 20:28:05 +0200 Subject: [PATCH] Fixed phpstan issues --- module/Common/src/Response/PixelResponse.php | 2 +- phpstan.neon | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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#'