Skip to content

Add Section 4 to the PER-CS 1.0 to 2.0 migration guide#141

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

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

Conversation

@rodrigoprimo
Copy link
Copy Markdown
Contributor

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

If class contains no additional declarations (such as an exception that exists only to extend another exception with a new type), then the body of the class SHOULD be abbreviated as {} and placed on the same line as the previous symbol, separated by a space.

This rule was added by #44 and is not present in Section 4 in 1.0.

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

As with #139, the new Section 4 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 4 about
abbreviating the body of a class with no additional declarations.
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