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

Fixed strict error "Declaration of *::bind() should be compatible with Monad::bind()" #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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