Skip to content

Commit

Permalink
bug #3887 restore return type annotations (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

restore return type annotations

Commits
-------

41f1b03 restore return type annotations
  • Loading branch information
fabpot committed Oct 9, 2023
2 parents 2d37866 + 41f1b03 commit e5d989f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Markup.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public function count()
return mb_strlen($this->content, $this->charset);
}

/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
Expand Down
6 changes: 6 additions & 0 deletions src/Util/TemplateDirIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@
*/
class TemplateDirIterator extends \IteratorIterator
{
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return file_get_contents(parent::current());
}

/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
Expand Down

0 comments on commit e5d989f

Please sign in to comment.