Skip to content

Commit

Permalink
Check that the attributes grant_types isset rather than property
Browse files Browse the repository at this point in the history
  • Loading branch information
uintaam committed Feb 29, 2024
1 parent 72e805a commit aba78a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function skipsAuthorization()
*/
public function hasGrantType($grantType)
{
if (! isset($this->grant_types) || ! is_array($this->grant_types)) {
if (! isset($this->attributes['grant_types']) || ! is_array($this->grant_types)) {
return true;
}

Expand Down

0 comments on commit aba78a6

Please sign in to comment.