We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please complete the information below:
4064: Accessing members on a nullable object
Accessing a property or a method on null will throw an exception.
Accessing a property on null currently emits a "Notice"
Please don't change anything below this point.
The text was updated successfully, but these errors were encountered:
On my local environment:
> null->foo() Hit a php exception : exception 'BadMethodCallException' with message 'Call to a member function foo() on a non-object (null)'
This probably depends on the HHVM settings if we aren't always throwing in this case.
Sorry, something went wrong.
You're calling a method on null, not performing a property fetch on null.
null
Huh, you're right.
> p null->foo Notice: Cannot access property on non-object Notice: Cannot access property on non-object null
I should update the docs, although I'm surprised HHVM doesn't enforce this more strictly yet.
No branches or pull requests
Please complete the information below:
Where is the problem?
What is the problem?
Accessing a property on null currently emits a "Notice"
Please don't change anything below this point.
The text was updated successfully, but these errors were encountered: