From 507f78d9c427899f65e89d97c223e4b8939eecef Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sun, 6 Jun 2021 00:40:16 +0200 Subject: [PATCH] Add ReturnTypeWillChange to JsonSerializable implementation Signed-off-by: Alexander M. Turek --- src/Markup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Markup.php b/src/Markup.php index 974ed91ba..802b6a038 100644 --- a/src/Markup.php +++ b/src/Markup.php @@ -40,6 +40,7 @@ class Markup implements \Countable, \JsonSerializable return mb_strlen($this->content, $this->charset); } + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->content;