Skip to content

Commit

Permalink
Merge branch '3.x' into 4.x
Browse files Browse the repository at this point in the history
* 3.x:
  re-add mixed return type
  • Loading branch information
fabpot committed Feb 14, 2025
2 parents 9a0f896 + 576b412 commit 3e97fc6
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 @@ -42,6 +42,9 @@ public function count(): int
return mb_strlen($this->content, $this->charset);
}

/**
* @return mixed
*/
public function jsonSerialize(): mixed
{
return $this->content;
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,11 +16,17 @@
*/
class TemplateDirIterator extends \IteratorIterator
{
/**
* @return string
*/
public function current(): mixed
{
return file_get_contents(parent::current());
}

/**
* @return string
*/
public function key(): mixed
{
return (string) parent::key();
Expand Down

0 comments on commit 3e97fc6

Please sign in to comment.