bug #3887 restore return type annotations (xabbuh)

This PR was merged into the 3.x branch.

Discussion
----------

restore return type annotations

Commits
-------

41f1b037 restore return type annotations
This commit is contained in:
Fabien Potencier
2023-10-09 09:05:06 +02:00
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()
{