stable
Clone or download
Read-only
No functional change. CI should be happy. orElse() can create union types from None and Some cases of Option, the "type" tests should verify that. orElse() also returns a different Option instance. I have a feeling that returning the same instance only in this case will lead to bugs later. For example, andThen() returns a new instance. They should be symmetric. We should not hold onto intermediary option references anyway, they are meant to be chained or used. part of story #35104: Milestones below Backlog Change-Id: I4a82447cccb688b890717dd628dc96ab0197798e
Modified Files
Name | ||||
---|---|---|---|---|
M | src/common/Option/Option.php | +1 | −1 | Go to diff View file |
M | tests/unit/common/Option/OptionTest.php | +1 | −2 | Go to diff View file |
M | tests/unit/common/Option/TypeTest.php | +5 | −5 | Go to diff View file |