Skip to content

[Config] show proposals when unsupported option is provided #28085

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

Merged
merged 1 commit into from
Aug 10, 2018
Merged

[Config] show proposals when unsupported option is provided #28085

merged 1 commit into from
Aug 10, 2018

Conversation

fmata
Copy link
Contributor

@fmata fmata commented Jul 29, 2018

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #28075
License MIT
Doc PR none

In case of proposals match with the provided option, all proposals are displayed.
In case of no pertinent proposal is available, all options are displayed in alpha order.

@chalasr chalasr added the DX DX = Developer eXperience (anything that improves the experience of using Symfony) label Jul 29, 2018
@chalasr chalasr added this to the next milestone Jul 29, 2018
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

(with minor comment)


if (\count($guesses)) {
asort($guesses);
$msg .= sprintf('. Did you mean "%s" ?', implode('", "', array_keys($guesses)));
Copy link
Member

Choose a reason for hiding this comment

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

the space before ? should be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed.

@nicolas-grekas
Copy link
Member

Thank you @fmata.

@nicolas-grekas nicolas-grekas merged commit 15f69a3 into symfony:master Aug 10, 2018
nicolas-grekas added a commit that referenced this pull request Aug 10, 2018
…vided (fmata)

This PR was merged into the 4.2-dev branch.

Discussion
----------

[Config] show proposals when unsupported option is provided

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #28075
| License       | MIT
| Doc PR        | none

In case of proposals match with the provided option, all proposals are displayed.
In case of no pertinent proposal is available, all options are displayed in alpha order.

Commits
-------

15f69a3 [Config] show proposals when unsupported option is provided
@fmata fmata deleted the issue-28075 branch August 10, 2018 07:36
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.2 Nov 1, 2018
This was referenced Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Config DX DX = Developer eXperience (anything that improves the experience of using Symfony) Feature Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants