Skip to content

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