Skip to content

Conversation

katsuren
Copy link

Original code throws strict error "Declaration of Maybe::bind() should be compatible with Monad::bind($function, array $args = Array)" when "error_reporting = E_STRICT" is set in php.ini.

Avoid this issue, base Monad class should not implement bind function.
But Monad class can implement magic method, and implement bind method in it.

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.

2 participants