Skip to content

Commit

Permalink
minor #4582 re-add mixed return type (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

re-add mixed return type

see #4581 (comment) and https://github.com/symfony/symfony/actions/runs/13329105184/job/37228898654?pr=59776#step:8:2832

Commits
-------

5f6c67f re-add mixed return type
  • Loading branch information
fabpot committed Feb 14, 2025
2 parents cfeb51b + 5f6c67f commit 576b412
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 @@ -46,6 +46,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 string
*/
#[\ReturnTypeWillChange]
public function current()
{
return file_get_contents(parent::current());
}

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

0 comments on commit 576b412

Please sign in to comment.