Skip to content

Add Section 8 to the PER-CS 1.0 to 2.0 migration guide#142

Open
rodrigoprimo wants to merge 1 commit into
php-fig:masterfrom
rodrigoprimo:add-section-8-to-migration-guide
Open

Add Section 8 to the PER-CS 1.0 to 2.0 migration guide#142
rodrigoprimo wants to merge 1 commit into
php-fig:masterfrom
rodrigoprimo:add-section-8-to-migration-guide

Conversation

@rodrigoprimo
Copy link
Copy Markdown
Contributor

PER-CS 2.0 introduces a new rule in Section 8:

If the anonymous class has no arguments, the () after class MUST be omitted.

This rule was added by #37 and is not present in Section 8 in 1.0.

This PR adds a Section 8 entry to migration-2.0.md.

As with #139, the new Section 8 heading uses the unversioned php-fig.org URL to match the existing entries. See #138 for the related discussion about whether this URL should be versioned.

PER-CS 2.0 added a new normative rule to Section 8 requiring that
the `()` after `class` MUST be omitted when an anonymous class has
no arguments. The rule is not currently documented in the migration
guide. This commit adds the missing entry.
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