Skip to content
This repository was archived by the owner on Dec 8, 2020. It is now read-only.

Fix error with $decoded_response being an uncountable type - #29

Open
BillyPurvis wants to merge 2 commits into
AzureAD:masterfrom
BillyPurvis:master
Open

Fix error with $decoded_response being an uncountable type#29
BillyPurvis wants to merge 2 commits into
AzureAD:masterfrom
BillyPurvis:master

Conversation

@BillyPurvis

Copy link
Copy Markdown
$decoded_response = json_decode($response['body'], true);

Can return NULL. The following line tries to count a type (NULL) which isn't a countable type which in turn produces a warning message.

The proposed fix solves this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant