Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call toString() even if objects do not implement lang.Value #313

Closed
wants to merge 2 commits into from

Conversation

thekid
Copy link
Member

@thekid thekid commented Aug 15, 2022

Idea based on #312, however, I disagree that this is an information disclosure problem. Secret values should use the util.Secret class, see #312 (comment)

Idea based on xp-framework#312, however, I disagree that this is an information
disclosure problem. Secret values should use the util.Secret class
nameof($test)." {\n}",
Objects::stringOf($test)
);
$this->assertEquals('->{:recursion:}', Objects::stringOf($test));
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a behavioral change we cannot prevent, unfortunately.

@thekid
Copy link
Member Author

thekid commented Aug 15, 2022

In addition to XP core's 4'221 unittests, all 13'885 XP libraries' tests also pass with this change - the behavioral change doesn't have any impact here (although I'll admit I don't always test string representations thorougly...)

@thekid thekid closed this Mar 23, 2024
@thekid thekid deleted the feature/tostring branch March 23, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant