Skip to content

Conversation

@samsonasik
Copy link
Member

I think the following code should be skipped:

        $first = 1 + 1 + 1 + 1 +1 + 1 + 1 + 1 + 1 + 1;
        $second = 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2;

        return $first <=> $second;

since it got unreadable after applied.

-        $first = 1 + 1 + 1 + 1 +1 + 1 + 1 + 1 + 1 + 1;
-        $second = 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2;
-
-        return $first <=> $second;
+        return 1 + 1 + 1 + 1 +1 + 1 + 1 + 1 + 1 + 1 <=> 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2;

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @TomasVotruba

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik enabled auto-merge (squash) October 11, 2025 10:31
@samsonasik samsonasik merged commit 5697100 into main Oct 11, 2025
53 checks passed
@samsonasik samsonasik deleted the skip-compare-binary-op branch October 11, 2025 10:32
@TomasVotruba
Copy link
Member

Yes :)

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.

3 participants