Skip to content

Conversation

@joelwurtz
Copy link
Member

Fix #227

@joelwurtz joelwurtz requested a review from Korbeil April 5, 2025 10:20
self::assertSame('cat', $petOwner->getPets()[1]->type);
self::assertSame('Coco', $petOwner->getPets()[2]->name);
self::assertSame('dog', $petOwner->getPets()[2]->type);
self::assertCount(2, $petOwner->getPets());
Copy link
Member Author

Choose a reason for hiding this comment

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

poke @Korbeil is this acceptable ? should we consider this PR as a BC break given that i had to change that or do we consider this a bug ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I will merge this, we can always revert before release, i need this for another PR

Copy link
Member

Choose a reason for hiding this comment

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

I do think it's fine since it's kinda a bug that we are adding without removing nowadays.

@joelwurtz joelwurtz merged commit f1b8d9d into main Apr 5, 2025
6 checks passed
@joelwurtz joelwurtz deleted the feat/remove-existing-values-with-remover branch April 5, 2025 16:39
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.

Mapping arrays to arrays differs if using direct assignment vs adder/remover

3 participants