8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Disclaimer: I'm not sure if this is still relevant for 4.0.
4.0
The current implementation of getClaim does not allow null-values:
getClaim
public function getClaim($name, $default = null) { if ($this->hasClaim($name)) { return $this->claims[$name]->getValue(); } if ($default === null) { throw new OutOfBoundsException('Requested claim is not configured'); } return $default; }
Even if you specifically provide the default value:
$token->getClaim('sub', null);
OutOfBoundsException
This could be solved by simply changing this line:
if ($default === null) {
to
if (func_num_args() === 1) {
The text was updated successfully, but these errors were encountered:
@iluuu1994 it's indeed not relevant for v4 but we can plan it for v3.3. I'll be working on it in the upcoming month 👍
Sorry, something went wrong.
Handled by #432
lcobucci
Successfully merging a pull request may close this issue.
Disclaimer: I'm not sure if this is still relevant for
4.0
.The current implementation of
getClaim
does not allow null-values:Even if you specifically provide the default value:
This could be solved by simply changing this line:
to
The text was updated successfully, but these errors were encountered: