mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 12:37:15 +00:00
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