Skip to content

Keep blank lines between methods in event subscriber attribute rules - #1101

Merged
TomasVotruba merged 1 commit into
mainfrom
preserve-blank-lines-eventsubscriber-fixtures
Oct 29, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
preserve-blank-lines-eventsubscriber-fixtures

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Follow-up to rectorphp/rector-src#8886.

That rector-src PR fixes the format-preserving printer so removing the last interface from a class no longer collapses the blank lines between its methods. These fixtures encoded the old collapsed output; this regenerates them to the corrected spacing.

Affected rules:

  • EventSubscriberToAttributeRector (multiple_mixed_methods, multiple_event_subscriptions)
  • MessageSubscriberInterfaceToAttributeRector (messagesubscriber-yield)

Note: CI stays red until rector-src#8886 is merged and released, since it pulls rector/rector-src dev-main which does not yet contain the printer fix.

@TomasVotruba
TomasVotruba merged commit 5e4e27a into main Oct 29, 2026
7 of 8 checks passed
@TomasVotruba
TomasVotruba deleted the preserve-blank-lines-eventsubscriber-fixtures branch October 29, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant