Skip to content

Add Section 6.1 to the PER-CS 1.0 to 2.0 migration guide#139

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

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

Conversation

@rodrigoprimo
Copy link
Copy Markdown

PER-CS 2.0 introduces a new normative rule in Section 6.1:

Type casting operators MUST NOT have any space within the parentheses and MUST be separated from the variable they are operating on by exactly one space.

The clause "and MUST be separated from the variable they are operating on by exactly one space" was added by #40 and is not present in Section 6.1 in 1.0. I'm new to this repository, so I might be missing something, but this change is not documented in the 2.0 migration guide, and I believe it should be.

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

The new Section 6.1 heading uses the same unversioned php-fig.org URL as the existing entries. This URL currently points to PER-CS 3.0. I'm not sure if this is correct. I opened #138 to discuss it.

PER-CS 2.0 added a new normative rule to Section 6.1 about the
spacing between a type casting operator and the variable it is
operating on. The rule is not currently documented in the
migration guide. This commit adds the missing entry.
Copy link
Copy Markdown
Collaborator

@Crell Crell left a comment

Choose a reason for hiding this comment

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

This seems fine to me. Will leave open for a bit to see if anyone else from the WG disagrees.

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