Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Php54] Use token base replace on LongArrayToShortArrayRector #6616

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

samsonasik
Copy link
Member

This make array print for short array have same structure:

-        return array(
-            array(
-                array(
+        return [
+            [
+                [
                     'abc' => true,
-                ),
-            ),
-        );
+                ],
+            ],
+        ];

instead of make single line due to reprint.

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@TomasVotruba
Copy link
Member

Looks very good 👍

@TomasVotruba TomasVotruba merged commit 8fea0f5 into main Dec 19, 2024
41 checks passed
@TomasVotruba TomasVotruba deleted the long-to-short-array branch December 19, 2024 07:35
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.

2 participants