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

Support scalar unions #7

Merged
merged 11 commits into from
Oct 4, 2022
Merged

Support scalar unions #7

merged 11 commits into from
Oct 4, 2022

Conversation

cseufert
Copy link
Member

@cseufert cseufert commented Oct 4, 2022

No description provided.

thisispiers and others added 11 commits April 4, 2020 00:21
…-2#201)

* Level-2#200 - Expand shareInstances test to replicate propagation issue

* Level-2#200 - Fix issue where 'shareInstances' resolve but fail to propagate

Because `$share` is passed by reference to `matchParam()`, and
`matchParam()` removes matching objects from its `$search` array,
instances may be removed from `$share` before it is passed to `expand()`
or `create()`. Depending on the order of constructor parameters and the
relative placement of `shareInstances` dependencies in the object tree,
this may result in multiple instances of these dependencies being
created.

Fixed by passing a copy of the `$share` array to `matchParam()`.
@cseufert cseufert merged commit d6f16f4 into main Oct 4, 2022
@cseufert cseufert deleted the merge-scalar-unions branch October 4, 2022 23:11
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.

4 participants