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

Adds the option to throw an exception on missing parameters #107

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

silvant
Copy link

@silvant silvant commented Jan 18, 2017

in non-interactive mode, fixes #105

Copy link
Member

@stof stof left a comment

Choose a reason for hiding this comment

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

this needs to be covered by tests

if (!$this->io->isInteractive()) {
if (isset($config['exception-when-missing'])) {
Copy link
Member

Choose a reason for hiding this comment

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

this should check the value of the config too. Setting it to false should not throw

Copy link
Author

@silvant silvant Jan 18, 2017

Choose a reason for hiding this comment

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

Agree, I chose isset, as that is similar as keep-outdated. Recommend we change both them to !empty && Inline::parse !== false. Do you agree?

@silvant silvant force-pushed the excep-missing-params branch 2 times, most recently from 664d7e8 to c906e51 Compare January 18, 2017 19:32
…missing is true, and combines dist when exception-when-missing is false
@silvant
Copy link
Author

silvant commented Jan 23, 2017

So apparently the Scrutinizer success result doesn't register here. Does somebody know how to fix this?
Otherwise I'll try an extra commit to see if that reruns Scrutinizer

@maffpool
Copy link

Any news about this feature ? I'm also very interested

@fduch
Copy link

fduch commented Oct 25, 2017

This one should be closed as duplicate in favor of #64

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.

Option to throw exception on missing parameters in non-interactive mode?
4 participants