Add the proper Exception message for all JSON error types by PHP by gbalduzzi · Pull Request #110 · firebase/php-jwt

An uncaught Exception was encountered

Type: DomainException

Message: Unknown JSON error: 5

Filename: F:\wamp64\www\fzm\application\helpers\jwt_helper.php

Line Number: 201

Backtrace:

File: F:\wamp64\www\fzm\application\helpers\jwt_helper.php
Line: 132
Function: _handleJsonError

File: F:\wamp64\www\fzm\application\helpers\jwt_helper.php
Line: 42
Function: jsonDecode

File: F:\wamp64\www\fzm\application\helpers\authorization_helper.php
Line: 18
Function: decode

File: F:\wamp64\www\fzm\application\controllers\api\ApiPost.php
Line: 78
Function: validateToken

File: F:\wamp64\www\fzm\application\libraries\REST_Controller.php
Line: 785
Function: call_user_func_array

File: F:\wamp64\www\fzm\index.php
Line: 315
Function: require_once