minor #4764 re-add mixed return type (xabbuh)

This PR was merged into the 3.x branch.

Discussion
----------

re-add mixed return type

re-doing #4582, see https://github.com/symfony/symfony/actions/runs/21779345389/job/62840897500#step:8:3635

Commits
-------

3a903664a8 re-add mixed return type
This commit is contained in:
Fabien Potencier
2026-02-07 13:53:57 +01:00
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@ return (new Config())
'single_line_throw' => false,
'ordered_imports' => true,
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
])
->setRiskyAllowed(true)
->setParallelConfig(ParallelConfigFactory::detect())
+3
View File
@@ -46,6 +46,9 @@ class Markup implements \Countable, \JsonSerializable, \Stringable
return mb_strlen($this->content, $this->charset);
}
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{