Skip to content
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

Guard against unset variable #53

Merged
merged 2 commits into from
Jul 28, 2018
Merged

Conversation

jonathonwalz
Copy link
Contributor

Ensure that if evaluateStringPluralism is called with an unset variable
key PHP doesn't emit any notices.

I'm not 100% sure if this is the correct fix or if the calling code (Label::getPlural) should be adjusted. I've only seen this happen with editortranslator which I believe is a special key.

Ensure that if evaluateStringPluralism is called with an unset variable
key PHP doesn't emit any notices.
@coveralls
Copy link

coveralls commented Jul 24, 2018

Coverage Status

Coverage decreased (-0.1%) to 91.978% when pulling 354f7a0 on umn-ici:fix-notice into 8063510 on seboettg:master.

@jonathonwalz
Copy link
Contributor Author

Tests are failing due to the es language override recently added to the APA styles. Pull request #52 is a potential fix to the issue.

@seboettg
Copy link
Owner

okay, I could push an own commit to your PR 👍
In "getPlural" I have added another "isset" on editor to the inserted "isset" from you.

@seboettg seboettg merged commit 4a3388a into seboettg:master Jul 28, 2018
@seboettg seboettg deleted the fix-notice branch July 28, 2018 06:59
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.

3 participants