Skip to content

Commit

Permalink
restore return type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Oct 8, 2023
1 parent 2d37866 commit 41f1b03
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 41f1b03

Please sign in to comment.