You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @ankurk91, thanks for the report. The PHP documentation you quoted explicitly says that the exception code may not always be an integer, but I don't see an issue with implementing your suggestion.
Hi,
The base exception class is setting error code see
stripe-php/lib/Error/OAuth/OAuthBase.php
Line 16 in 77eb5bb
but the error codes can only be type of integer.
When i am trying to consume this exception in my application like.
According to php docs
A possible solution would be -
Then base class method
getErrorCode
need to return$this->errorCode
value instead.Thanks for reading.
The text was updated successfully, but these errors were encountered: