You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 20, 2018. It is now read-only.
This one will be tricky to do right with static analysis. We may be able to do something like:
Parse everything that looks like $variable = some_opaque_operation(); $variable->do_stuff() when not wrapped in a valid check like is_callable( $variable, 'do_stuff' ).
The same would go for accessing properties without checking that the $variable was indeed an object or instanceof a class.
There may also be a dynamic analysis piece to this.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
@nickdaugherty once said, "return values should always be checked before calling methods on them"
The text was updated successfully, but these errors were encountered: