restore return type annotations

This commit is contained in:
Christian Flothmann
2023-10-08 20:59:56 +02:00
parent 2d37866aa2
commit 41f1b0370a
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -41,6 +41,9 @@ class Markup implements \Countable, \JsonSerializable
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 mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return file_get_contents(parent::current());
}
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{