Skip to content

Fix log context type: use empty array instead of null#403

Merged
Keith-wright merged 1 commit into
pusher:masterfrom
aceraven777:fix/logger-context-type
May 15, 2026
Merged

Fix log context type: use empty array instead of null#403
Keith-wright merged 1 commit into
pusher:masterfrom
aceraven777:fix/logger-context-type

Conversation

@aceraven777
Copy link
Copy Markdown
Contributor

Description

Fix incorrect log context type in webhook handling. The logger expects an array as the second parameter, but null was being passed in several warning logs. Replace null with an empty array to ensure type consistency and avoid potential runtime/type issues.

CHANGELOG

  • [FIXED] Replace null with empty array for logger context in webhook error handling

@Keith-wright Keith-wright self-requested a review May 15, 2026 19:52
Copy link
Copy Markdown
Contributor

@Keith-wright Keith-wright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct fix — null is not a valid PSR-3 logger context, [] is the right type. Verified locally with unit tests covering all three code paths.

@Keith-wright Keith-wright merged commit e56c139 into pusher:master May 15, 2026
0 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants