Skip to content

Commit

Permalink
fix: πŸ› Handle null values
Browse files Browse the repository at this point in the history
  • Loading branch information
maicol07 committed Oct 28, 2021
1 parent 5d918bd commit f28d81a
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 @@ -158,7 +158,7 @@ public function __construct(array $user_config)
'jwt_plain_key' => false
];
foreach ($props as $prop => $default) {
$this->{$prop} = $config->get($prop, $default);
$this->{$prop} = $config->get($prop, $default) ?? $default;
}

if (empty($this->code_challenge_method)) {
Expand Down

0 comments on commit f28d81a

Please sign in to comment.