Closed philipptreichel closed 2 years ago
Hi @philipptreichel,
You are right, this could be managed as showed in your proposal.
Maybe just throw $e;
is enough, no need to wrap the RuntimeException into another RuntimeException.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
path: vendor/web-token/jwt-signature/JWSVerifier.php
Problem Description
This Function catches all Exceptions. When a Runtime Exception occures such as:
this function just gives a false back.
Possible solution
Catch Runtime Exceptions Separately and throw a new Exception. Maybe like this: