re-add mixed return type

This commit is contained in:
Christian Flothmann
2025-02-14 13:36:34 +01:00
parent cfeb51b67f
commit 5f6c67f838
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -46,6 +46,9 @@ class Markup implements \Countable, \JsonSerializable, \Stringable
return mb_strlen($this->content, $this->charset);
}
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
+6
View File
@@ -16,12 +16,18 @@ namespace Twig\Util;
*/
class TemplateDirIterator extends \IteratorIterator
{
/**
* @return string
*/
#[\ReturnTypeWillChange]
public function current()
{
return file_get_contents(parent::current());
}
/**
* @return string
*/
#[\ReturnTypeWillChange]
public function key()
{