Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Allowing empty secrets to be set#36400

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@weaverryan
Copy link
Member

@weaverryanweaverryan commentedApr 9, 2020
edited by nicolas-grekas
Loading

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsNone
LicenseMIT
Doc PRNot needed

Setting secrets to an empty string is a valid value - you can already do this by consuming from an empty file orstdin with no input. But it'snot currently possible to use the interactive prompt to set a secret to an empty string. This fixes that.

thrownew \InvalidArgumentException(sprintf('File is not readable: "%s".',$file));
}

if (null ===$value) {
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

If you look above at the possible ways to set$value, anull value was only possible when using theaskHidden() interactive prompt. So now, it should not be possible to havenull at this point.

@weaverryanweaverryanforce-pushed thefix-allow-empty-secrets branch fromf2c9e66 toc9bf0c8CompareApril 9, 2020 14:53
@weaverryanweaverryan changed the base branch frommaster to4.4April 9, 2020 14:54
@nicolas-grekasnicolas-grekas added this to the4.4 milestoneApr 9, 2020
@nicolas-grekas
Copy link
Member

Thank you@weaverryan.

@nicolas-grekasnicolas-grekas merged commit2dd5fe6 intosymfony:4.4Apr 10, 2020
@weaverryanweaverryan deleted the fix-allow-empty-secrets branchApril 27, 2020 13:47
This was referencedApr 28, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@lyrixxlyrixxAwaiting requested review from lyrixx

+1 more reviewer

@TobionTobionTobion approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

6 participants

@weaverryan@nicolas-grekas@javiereguiluz@Tobion@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp