Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Initialize the aggregation builder stages property with an empty array #257

Merged
merged 1 commit into from Mar 24, 2016

Conversation

vntw
Copy link
Contributor

@vntw vntw commented Mar 24, 2016

This will fix a PHP warning when calling getPipeline() on an Aggregation
builder without any stages since array_map expects an array as second argument, but the $stages
property is still null. The new behaviour is consistent with the Query builder, which also
returns an empty array.

This will fix a PHP warning when calling `getPipeline()` on an Aggregation
builder without any stages since array_map expects an array as second argument, but the `$stages`
property is still `null`. The new behaviour is consistent with the Query builder, which also
returns an empty array.
@alcaeus alcaeus merged commit ff9bdc6 into doctrine:1.2.x Mar 24, 2016
@alcaeus
Copy link
Member

alcaeus commented Mar 24, 2016

Thanks!

@alcaeus alcaeus added the bug label Mar 24, 2016
@alcaeus alcaeus added this to the 1.2.3 milestone Mar 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants