Skip to content

Expand Section 6.4 entry in the PER-CS 2.0 to 3.0 migration guide#147

Open
rodrigoprimo wants to merge 1 commit into
php-fig:masterfrom
rodrigoprimo:add-ternary-rule-to-section-6.4-in-migration-guide-3.0
Open

Expand Section 6.4 entry in the PER-CS 2.0 to 3.0 migration guide#147
rodrigoprimo wants to merge 1 commit into
php-fig:masterfrom
rodrigoprimo:add-ternary-rule-to-section-6.4-in-migration-guide-3.0

Conversation

@rodrigoprimo
Copy link
Copy Markdown
Contributor

Section 6.4 is new in 3.0. It states:

A statement that includes an operator MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the operator MUST be placed at the beginning of the new line; ternaries MUST occupy 3 lines, never 2.

The migration guide already has a Section 6.4 entry covering the general operator-at-start rule, but it does not state the ternary-specific 3-lines constraint.

Section 6.4 was introduced by #93. This PR appends the missing ternary constraint to the existing entry.

Section 6.4 is new in 3.0. Among its rules, ternaries MUST occupy 3
lines, never 2.

The migration guide already has a Section 6.4 entry covering the
general operator-at-start rule, but it omits the ternary-specific
constraint. This commit appends the missing sentence to that 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.

1 participant