Run Rector on your code to see what it can do for you:
<?php final class DemoFile { - /** - * Recursively traverse the Tiptap document tree to find user mentions - * - * @param array|null $node The current node to check - * @param mixed[] $mentions Array to collect mentions - */ + /** + * Recursively traverse the Tiptap document tree to find user mentions + * + * @param array|null $node The current node to check + * @param mixed[] $mentions Array to collect mentions + */ private function traverseNodes($node, array &$mentions): void { if (! $node || ! is_array($node)) {
Applied Rules:
Not a change you expect?
rector.php