Skip to content

Fixed singular of committee #18911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

Fixed singular of committee #18911

wants to merge 4 commits into from

Conversation

peterrehm
Copy link
Contributor

@peterrehm peterrehm commented May 29, 2016

Q A
Branch? 2.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #18872, #18748
License MIT
Doc PR -

In addition to PR #18909.

@@ -211,8 +210,13 @@ public static function singularify($plural)
}
}

$irregularNouns = array(
Copy link
Member

Choose a reason for hiding this comment

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

would be better as a private static var

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had it like that prior to the PR but since those are irregular nouns in that context I have moved that into the function.

Copy link
Member

Choose a reason for hiding this comment

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

Inline arrays are can't benefit from some opcache optims until php7. A private static would fix that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shall I update it accordingly? I prefered the logic reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nicolas-grekas Shall I refactor it? I would like to get this merged.

Copy link
Member

Choose a reason for hiding this comment

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

yep please

@peterrehm
Copy link
Contributor Author

@nicolas-grekas Updated

@peterrehm
Copy link
Contributor Author

@nicolas-grekas Both PR's are updated

@peterrehm
Copy link
Contributor Author

Just added support for screenshots as well. However this shows best why I did not wanted the private static array, as this can lead to confusions now.

@fabpot
Copy link
Member

fabpot commented Jun 8, 2016

Thank you @peterrehm.

fabpot added a commit that referenced this pull request Jun 8, 2016
This PR was submitted for the 2.3 branch but it was merged into the 2.7 branch instead (closes #18911).

Discussion
----------

Fixed singular of committee

| Q             | A
| ------------- | ---
| Branch?       | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18872, #18748
| License       | MIT
| Doc PR        | -

In addition to PR #18909.

Commits
-------

5661d52 Fixed singular of committee
@fabpot fabpot closed this Jun 8, 2016
@peterrehm peterrehm deleted the inflector-2.3 branch June 8, 2016 15:19
@fabpot fabpot mentioned this pull request Jun 15, 2016
This was referenced Jun 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants