Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Steveb-p
Copy link
Contributor

@Steveb-p Steveb-p commented Oct 27, 2025

🎫 Issue IBX-10859

Description:

This PR removes ENCODER_CONTEXT from responses, when using Visitor Adapter.

For QA:

Documentation:

@Steveb-p Steveb-p force-pushed the fixed-encoder-context-in-response branch from 20ffff7 to 8f3bdb2 Compare October 27, 2025 11:14
@Steveb-p Steveb-p requested review from a team and Copilot October 27, 2025 11:15
@Steveb-p Steveb-p added Bug Something isn't working Ready for review labels Oct 27, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where ENCODER_CONTEXT metadata was leaking into API responses when using the Visitor Adapter pattern. The fix recursively removes all ENCODER_CONTEXT entries from normalized data structures, including nested objects.

Key Changes:

  • Added recursive removeEncodeContext() method to strip ENCODER_CONTEXT from all levels of data structures
  • Enhanced test coverage to verify removal of nested ENCODER_CONTEXT entries

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/contracts/Output/Visitor.php Implements recursive removal of ENCODER_CONTEXT from normalized data
tests/lib/Output/VisitorTest.php Adds test coverage for nested ENCODER_CONTEXT removal with array and ArrayObject cases

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

Copy link
Contributor

@ViniTou ViniTou left a comment

Choose a reason for hiding this comment

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

lgtm

@Steveb-p Steveb-p changed the title Fixed ENCODER_CONTEXT being present in response for nested objects IBX-10859: Fixed ENCODER_CONTEXT being present in response for nested objects Oct 27, 2025
@Steveb-p Steveb-p merged commit f9825ba into main Oct 28, 2025
13 of 14 checks passed
@Steveb-p Steveb-p deleted the fixed-encoder-context-in-response branch October 28, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants