Skip to content

Fix attribute insertion on enums in formatting-preserving printer - #1156

Merged
nikic merged 1 commit into
nikic:masterfrom
6b7562617765726c6f73:fix_PrettyPrinterAbstract
Jul 10, 2026
Merged

Fix attribute insertion on enums in formatting-preserving printer#1156
nikic merged 1 commit into
nikic:masterfrom
6b7562617765726c6f73:fix_PrettyPrinterAbstract

Conversation

@kubawerlos

Copy link
Copy Markdown
Contributor

Currently, the code is formatted to:

<?php
#[X]
enum E {
    #[X]
    case A;
    case B;
    case C;
}

@nikic
nikic merged commit 021f412 into nikic:master Jul 10, 2026
12 checks passed
@kubawerlos
kubawerlos deleted the fix_PrettyPrinterAbstract branch July 10, 2026 17:21
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