Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate objectToArray keys in AggregationOperatorsProviderTrait #2624

Closed
jmikola opened this issue Apr 19, 2024 · 1 comment · Fixed by #2629
Closed

Duplicate objectToArray keys in AggregationOperatorsProviderTrait #2624

jmikola opened this issue Apr 19, 2024 · 1 comment · Fixed by #2629
Labels
Milestone

Comments

@jmikola
Copy link
Member

jmikola commented Apr 19, 2024

Bug Report

Q A
BC Break no
Version 2.6.0

Summary

21a66c2 for #2514 introduced duplicate data provider keys in AggregationOperatorsProviderTrait. It's possible that the issue only arose after the PHPUnit dependency was bumped in 0aa0e7b (also for 2.6.0).

Current behavior

I observed the following test failures in this CI job for #2623:

1) Doctrine\ODM\MongoDB\Tests\Aggregation\ExprTest::testGenericOperator
The data provider specified for Doctrine\ODM\MongoDB\Tests\Aggregation\ExprTest::testGenericOperator is invalid
The key "objectToArray" has already been defined by a previous data provider

/home/runner/work/mongodb-odm/mongodb-odm/tests/Doctrine/ODM/MongoDB/Tests/Aggregation/ExprTest.php:40

2) Doctrine\ODM\MongoDB\Tests\Aggregation\ExprTest::testGenericOperatorWithField
The data provider specified for Doctrine\ODM\MongoDB\Tests\Aggregation\ExprTest::testGenericOperatorWithField is invalid
The key "objectToArray" has already been defined by a previous data provider

/home/runner/work/mongodb-odm/mongodb-odm/tests/Doctrine/ODM/MongoDB/Tests/Aggregation/ExprTest.php:71

3) Doctrine\ODM\MongoDB\Tests\Aggregation\Stage\OperatorTest::testProxiedExpressionOperators
The data provider specified for Doctrine\ODM\MongoDB\Tests\Aggregation\Stage\OperatorTest::testProxiedExpressionOperators is invalid
The key "objectToArray" has already been defined by a previous data provider

/home/runner/work/mongodb-odm/mongodb-odm/tests/Doctrine/ODM/MongoDB/Tests/Aggregation/Stage/OperatorTest.php:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants