mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-03 22:17:36 +00:00
Add ReturnTypeWillChange to JsonSerializable implementation
Signed-off-by: Alexander M. Turek <me@derrabus.de>
This commit is contained in:
@@ -40,6 +40,7 @@ class Markup implements \Countable, \JsonSerializable
|
||||
return mb_strlen($this->content, $this->charset);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return $this->content;
|
||||
|
||||
Reference in New Issue
Block a user