Skip to content

Commit

Permalink
Merge pull request #76 from dcblogdev/remove-object-from-is-json
Browse files Browse the repository at this point in the history
removed object type hint from `isJson`
  • Loading branch information
dcblogdev authored May 12, 2024
2 parents f5757db + f56df5f commit 43af488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MsGraphAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ public function __call(string $function, array $args): mixed
}
}

protected function isJson(object|string $data): bool
protected function isJson(string $data): bool
{
return is_string($data) && is_array(json_decode($data, true)) && (json_last_error() == JSON_ERROR_NONE);
return is_array(json_decode($data, true)) && (json_last_error() == JSON_ERROR_NONE);
}

/**
Expand Down

0 comments on commit 43af488

Please sign in to comment.