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

Error checking for Snapchat::$cache in getUpdates and getFriendStories #36

Open
gabrielsoldani opened this issue Jul 20, 2014 · 0 comments

Comments

@gabrielsoldani
Copy link

Snapchat::$cache can be null or not defined in getUpdates and getFriendStories, when login fails or after a logout.

Code to reproduce:

$snap = new Snapchat('gjdrglkmdr', 'gdkrweokew'); // invalid username and password combination
$snap->getUpdates();

outputs

PHP Notice:  Undefined property: Snapchat::$cache in C:\Users\Gabriel\Documents\
GitHub\php-snapchat\src\snapchat.php on line 234

Notice: Undefined property: Snapchat::$cache in C:\Users\Gabriel\Documents\GitHu
b\php-snapchat\src\snapchat.php on line 234
PHP Fatal error:  Call to a member function get() on a non-object in C:\Users\Ga
briel\Documents\GitHub\php-snapchat\snapchat.php on line 234

Fatal error: Call to a member function get() on a non-object in C:\Users\Gabriel
\Documents\GitHub\php-snapchat\src\snapchat.php on line 234
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

No branches or pull requests

1 participant