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

[Yaml] ensure dump indentation to be greather than zero#17979

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

Conversation

@xabbuh
Copy link
Member

QA
Branchmaster
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#17943 (comment),#17977
LicenseMIT
Doc PR

This completes#17978.

publicfunction__construct($indentation =4)
{
if ($indentation <1) {
thrownew \InvalidArgumentException('The indentation must be greater than zero.');
Copy link
Contributor

Choose a reason for hiding this comment

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

The indentation can be a float number like 3.14? or should ensure that the indentation is a natural number?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

The docblock states that the argument must be an integer and we don't do scalar type checks in Symfony.

@fabpot
Copy link
Member

Done in the merge commit. Thanks.

@fabpotfabpot closed thisMar 2, 2016
@xabbuhxabbuh deleted the minimum-indentation-level-master branchMarch 2, 2016 11:55
@xabbuh
Copy link
MemberAuthor

Thanks@fabpot!

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

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@xabbuh@fabpot@dosten@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp