Skip to content

Generalize double arrow spacing rule - #157

Open
samdark wants to merge 2 commits into
php-fig:masterfrom
samdark:generalize-double-arrow-spacing
Open

Generalize double arrow spacing rule#157
samdark wants to merge 2 commits into
php-fig:masterfrom
samdark:generalize-double-arrow-spacing

Conversation

@samdark

@samdark samdark commented Aug 27, 2026

Copy link
Copy Markdown
Member

Fixes #154.

Copilot AI lite review requested due to automatic review settings August 27, 2026 14:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the PER specification to make spacing around the => token a general rule rather than repeating it in specific constructs, aligning with the intent of issue #154.

Changes:

  • Removes the per-section => spacing requirement from Property Hooks.
  • Removes the per-section => spacing requirement from Short Closures (arrow functions).
  • Adds a general => spacing rule under the Operators section.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread spec.md Outdated
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.

Should the single space around => be stated as a general rule instead of per construct?

2 participants