mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
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:
@@ -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())
|
||||
|
||||
@@ -46,6 +46,9 @@ class Markup implements \Countable, \JsonSerializable, \Stringable
|
||||
return mb_strlen($this->content, $this->charset);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function jsonSerialize()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user