Skip to content

Commit

Permalink
Refactor constants declaration in DefaultRequestIdGenerator
Browse files Browse the repository at this point in the history
Constants in DefaultRequestIdGenerator were refactored to remove 'string' and 'array' type declarations. These changes conform to PHP constants declaration rules, which do not require type specification.

Signed-off-by: mesilov <[email protected]>
  • Loading branch information
mesilov committed Feb 18, 2024
1 parent ad94742 commit 6aeacd6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

class DefaultRequestIdGenerator implements RequestIdGeneratorInterface
{
private const string DEFAULT_REQUEST_ID_HEADER_FIELD_NAME = 'X-Request-ID';
private const string DEFAULT_QUERY_STRING_PARAMETER_NAME = 'bx24_request_id';
private const array KEY_NAME_VARIANTS = [
private const DEFAULT_REQUEST_ID_HEADER_FIELD_NAME = 'X-Request-ID';
private const DEFAULT_QUERY_STRING_PARAMETER_NAME = 'bx24_request_id';
private const KEY_NAME_VARIANTS = [
'REQUEST_ID',
'HTTP_X_REQUEST_ID',
'UNIQUE_ID'
Expand Down

0 comments on commit 6aeacd6

Please sign in to comment.