diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 9863b4528..4753446ed 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -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()) diff --git a/src/Markup.php b/src/Markup.php index c8efddb6f..a933b69d3 100644 --- a/src/Markup.php +++ b/src/Markup.php @@ -46,6 +46,9 @@ class Markup implements \Countable, \JsonSerializable, \Stringable return mb_strlen($this->content, $this->charset); } + /** + * @return mixed + */ #[\ReturnTypeWillChange] public function jsonSerialize() {