Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix the static variable in the Lexer + fix option populating to default ...#79

Merged
danielbachhuber merged 1 commit into
wp-cli:masterwp-cli/php-cli-tools:masterfrom
rantonmattei:2015-02-26--Default-option-valuerantonmattei/php-cli-tools:2015-02-26--Default-option-valueCopy head branch name to clipboard
Feb 27, 2015
Merged

Fix the static variable in the Lexer + fix option populating to default ...#79
danielbachhuber merged 1 commit into
wp-cli:masterwp-cli/php-cli-tools:masterfrom
rantonmattei:2015-02-26--Default-option-valuerantonmattei/php-cli-tools:2015-02-26--Default-option-valueCopy head branch name to clipboard

Conversation

@rantonmattei

Copy link
Copy Markdown

...when no value provided.

Fixed the option set to the default value when no value was provided and that the option settings had a default setup. (see issue #30)
Tests have been added for that scenario.

I had to fix the static var issue because of the penultimate test. It was triggering an exception (looks like PhpUnit catches E_USER_WARNING errors and change them to exceptions...), therefore it never got to the Lexer::$allowRewind = true; line and caused the following and last test to fail. I reused the fix from PR #55 which was much cleaner. You can close that PR BTW.

@danielbachhuber please review

@danielbachhuber danielbachhuber added this to the v0.11.0 milestone Feb 27, 2015
@danielbachhuber danielbachhuber modified the milestones: next, v0.11.0 Feb 27, 2015
danielbachhuber added a commit that referenced this pull request Feb 27, 2015
…alue

Fix the static variable in the Lexer + fix option populating to default ...
@danielbachhuber danielbachhuber merged commit 228e8c1 into wp-cli:master Feb 27, 2015
@rantonmattei

Copy link
Copy Markdown
Author

Hi @danielbachhuber, do you know when I can expect a new tag along with a new version available on Packagist?
Let me know if I can help.
Thanks,
Raphael

@danielbachhuber

Copy link
Copy Markdown
Member

Sorry for the delay — just pushed.

@rantonmattei

Copy link
Copy Markdown
Author

No worries. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.