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

Explicit exception message for unsupported magic methods #11

Merged
merged 1 commit into from Jun 12, 2016

Conversation

mnapoli
Copy link
Member

@mnapoli mnapoli commented Jun 12, 2016

Fixes PHP-DI/PHP-DI#422

When trying to call a magic method, a Invoker\Exception\NotCallableException exception will be thrown with message:

MyClass::foo() is not a callable. A __call() method exists but magic methods are not supported.

@mnapoli mnapoli merged commit 4140c38 into master Jun 12, 2016
@mnapoli mnapoli deleted the better-exception-messages branch June 12, 2016 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant