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)) {
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 40943e - released at 2026-08-03 19:41