Skip to content

Deprecated code in JWTClaims #330

Closed
Closed
@sarahk

Description

@sarahk

SDK you're using (please complete the following information):

  • [2.23.0]

Describe the bug
Use of the JWT functions throws deprecation errors

To Reproduce
Steps to reproduce the behaviour:

  1. install xero-php-oauth2-starter & dependancies
  2. run the demo project
  3. authenticate with Xero
  4. Click the menu option for "JWT Claims"
  5. Errors are shown before the desired information

Deprecated: Creation of dynamic property XeroAPI\XeroPHP\JWTClaims::$accessToken is deprecated in /Users/mymac/Sites/CKM/vendor/xeroapi/xero-php-oauth2/lib/JWTClaims.php on line 139

Deprecated: Creation of dynamic property XeroAPI\XeroPHP\JWTClaims::$jwtAccessDecoded is deprecated in /Users/sarahking/mymac/CKM/vendor/xeroapi/xero-php-oauth2/lib/JWTClaims.php on line 126

Expected behaviour
I expected to get an errorless dump of the JWT Token

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
This can obviously be ignored but it would be good to get the code upgraded at some point.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions