Skip to content

Document "required" clock parameter #474

Closed
@cookieguru

Description

@cookieguru

Description

#433 introduced an annoying E_USER_DEPRECATED error in 3.2.0. This new paramater:

I'll take responsibility for:

  • My library that consumes web-token/jwt-framework requires ^3.1 but should be ~3.1
  • Slim 4's default error handler appends deprecation notices to the existing payload. So a successful API response that should return this:
{"foo": "bar"}

is actually returning this:

{"foo": "bar"}{
  "statusCode": 500,
  "error": {
    "type": "SERVER_ERROR",
    "description": "ERROR: Since web-token\/jwt-checker 3.2.0: The parameter \"$clock\" will become mandatory in 4.0.0. Please set a valid PSR Clock implementation instead of \"null\". on line 25 in file \/var\/www\/vendor\/symfony\/deprecation-contracts\/function.php."
  }
}

on every request.

This issue is to request documentation for the parameter, and/or provide an Upgrading guide in the repo

I'll save the debate on whether "you used to do 'nothing', but in the future you must do 'something'" qualifies as a deprecation for a future ticket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions