Skip to content

Conversation

@dalibert42
Copy link

We replaced the array_map() process with a foreach, to continue the iteration if the pick of a PickerInterface is returning false. This allows to only have the wanted final values in the returning array of the getData() method instead of, for example, have null values or false values in this array.

…with a foreach, to continue the iteration if the pick of a PickerInterface is returning false. This allows to only have the wanted final values in the returning array of the getData() method instead of, for example, have null values or false values in this array.
@coveralls
Copy link

coveralls commented Jun 22, 2016

Coverage Status

Coverage decreased (-0.8%) to 84.286% when pulling 4483996 on dalibert42:4.0 into e952f57 on thecodingmachine:4.0.

@moufmouf
Copy link
Member

We need to review this.
First of all, the new code contains an error. Proof: it breaks the unit tests. This is because the new code is: creating an array instead of an array of array, and is not accounting for the keys in the array (keys are lost).

Also, is it really a problem to have false/null values?

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