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

[VarDumper] Dont use empty(), it chokes on eg GMP objects#25209

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

@nicolas-grekas
Copy link
Member

QA
Branch?3.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#25198
LicenseMIT
Doc PR-

// Create $stub when the original value $v can not be used directly
// If $v is a nested structure, put that structure in array $a
switch (true) {
caseempty($v):
Copy link
Member

Choose a reason for hiding this comment

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

'0' is also empty according to PHP

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

true, but there is no need to make it a special case: handling it in the "is_string" case is enough IMHO

@nicolas-grekasnicolas-grekasforce-pushed thevardump-no-empty branch 3 times, most recently from13d4d1b to7937ad0CompareNovember 30, 2017 09:09
@nicolas-grekasnicolas-grekas merged commit1b14173 intosymfony:3.3Nov 30, 2017
nicolas-grekas added a commit that referenced this pull requestNov 30, 2017
…(nicolas-grekas)This PR was merged into the 3.3 branch.Discussion----------[VarDumper] Dont use empty(), it chokes on eg GMP objects| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#25198| License       | MIT| Doc PR        | -Commits-------1b14173 [VarDumper] Dont use empty(), it chokes on eg GMP objects
@nicolas-grekasnicolas-grekas deleted the vardump-no-empty branchNovember 30, 2017 14:51
This was referencedNov 30, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp