Skip to content

Conversation

@xHeaven
Copy link
Contributor

@xHeaven xHeaven commented Dec 15, 2025

No description provided.

@xHeaven
Copy link
Contributor Author

xHeaven commented Dec 15, 2025

If we like it, it can be merged regardless of the coding conventions, it's just Mago trying to mess up the code.

❯ ./vendor/bin/mago fmt --dry-run
diff of 'packages/console/src/Commands/CompletionUninstallCommand.php':
--- original
+++ modified
@@ -103,9 +103,7 @@
             return true;
         }

-        $newContent = read_file($rcFile)
-                |> $this->removeCompletionLines(...)
-                |> (static fn (string $c): string => preg_replace("/\n{3,}/", "\n\n", $c) ?? $c);
+        $newContent = read_file($rcFile) |> $this->removeCompletionLines(...) |> static fn (string $c): string => preg_replace("/\n{3,}/", "\n\n", $c) ?? $c;

         write_file($rcFile, $newContent);
         $this->info("Removed completion config from {$rcFile}");

 INFO Found 1 file(s) that need formatting.

Technically we could update it to the latest release candidate, since this issue is fixed there already... but I'll leave that to someone braver, loooots of changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant