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

parseWith support for any callable method #221

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

parseWith support for any callable method #221

wants to merge 2 commits into from

Conversation

metaclassing
Copy link

Currently parseWith only supports inline Closure types, I would like to support passing existing functions (in other namespaces) as the custom response body parser. This PR covers that use case and adds two tests for inline and any callable function.

@metaclassing
Copy link
Author

It appears Callable was not added until PHP 5.4.
Is 5.3 BC mandatory in Dev? I don't know enough about the user base to address this concern adequately.

@nategood
Copy link
Owner

Yeah. I'm a little scared to drop support for it without knowing. It hasn't been officially supported by PHP for quite some time so we can probably consider dropping support for it in the next major release.

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