Skip to content

Conversation

bor0
Copy link
Contributor

@bor0 bor0 commented Sep 20, 2013

https://bugs.php.net/bug.php?id=64744

Show the type of the non-object for more descriptive errors

@nikic
Copy link
Member

nikic commented Sep 20, 2013

I would prefer to remove the "non-object" part altogether in this case:

Call to a member function bar() on a non-object (boolean)
Call to a member function bar() on a boolean
Call to a member function bar() on boolean

The latter avoids issues with a/an.

But in any case, the tests should include the actual error message rather than a %s placeholder there :)

Show the type of the non-object for more descriptive errors
@bor0
Copy link
Contributor Author

bor0 commented Sep 20, 2013

PR updated per suggestions.

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.

3 participants