You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now, filter applies only on property of an object. But for filter PropertyByTypeFilter, it would be more consistent, if its applies on all existing instances of specified type that appears inside copied elemnt, so not just object properties, but also members of arrays, or copied object itself (i.e. $deepCopy->clone(\Mockery::mock(MySuperClass::class)).
This is particullary useful to configure DeepCopy to skip all mocked instances (I'm using Mockery), which oviously, DeepCopy fails to clone.
The text was updated successfully, but these errors were encountered:
trebi
changed the title
Implement Matcher and Filter that processes array members.
Implement Matcher and Filter that processes also array members.
Oct 3, 2015
I'm not sure it would make sense to change the behavior of PropertyByTypeFilter. Maybe it would be better to add another filter? E.g. PropertyContainsType or something like this?
For now, filter applies only on property of an object. But for filter
PropertyByTypeFilter
, it would be more consistent, if its applies on all existing instances of specified type that appears inside copied elemnt, so not just object properties, but also members of arrays, or copied object itself (i.e.$deepCopy->clone(\Mockery::mock(MySuperClass::class)
).This is particullary useful to configure DeepCopy to skip all mocked instances (I'm using Mockery), which oviously, DeepCopy fails to clone.
The text was updated successfully, but these errors were encountered: