-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Consider the following code:
$maybe = Maybe::fromValue(null)
->flatMap(function () {
return Maybe::fromValue('some value');
})
->getOrElse('default');It causes the error: PHP Fatal error: Uncaught Error: Call to a member function getOrElse() on null. Probably Nothing::flatMap should return an instance of Nothing instead of null.
Metadata
Metadata
Assignees
Labels
No labels