Skip to content

Conversation

dawehner
Copy link
Contributor

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

Copy link
Member

Choose a reason for hiding this comment

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

The & is not needed here, is it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, it is ... otherwise you don't count the total items, but just the amount of items in your current recursion chain.

[
  [1, 2, 3]
  [1, 2, 3]
  [1, 2, 3]
]

In this example $count would result in a maximum number of 6, but it should be 9

@fabpot
Copy link
Member

fabpot commented Dec 16, 2014

👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Why has CS checker left out variable name with underscore?

@fabpot
Copy link
Member

fabpot commented Dec 17, 2014

Thank you @dawehner.

fabpot added a commit that referenced this pull request Dec 17, 2014
…hner)

This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #13004).

Discussion
----------

add a limit and a test to FlattenExceptionTest.

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

Commits
-------

c6bcf05 add a limit and a test to FlattenExceptionTest.
@fabpot fabpot closed this Dec 17, 2014
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.

3 participants