Skip to content

Conversation

@SanderVerkuil
Copy link

Updates the generated mapper code such that circular references are handled properly when using promoted properties.

Solves #271

@SanderVerkuil SanderVerkuil force-pushed the fix/271/circular-references-with-promoted-properties branch from 4f156e3 to 30a6720 Compare April 30, 2025 13:13
@SanderVerkuil SanderVerkuil changed the title Circular references aren't handled with promoted properties fix(constructor): fixed circular references with promoted properties Apr 30, 2025
Copy link
Member

@Korbeil Korbeil left a comment

Choose a reason for hiding this comment

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

THanks for the fix @SanderVerkuil !
Could you add a note in the CHANGELOG about your changes please ? 🙏

@SanderVerkuil SanderVerkuil force-pushed the fix/271/circular-references-with-promoted-properties branch 2 times, most recently from 0ec8ce0 to 0c4618c Compare July 9, 2025 10:04
@SanderVerkuil
Copy link
Author

@Korbeil Added the item to the changelog!

@Korbeil
Copy link
Member

Korbeil commented Jul 10, 2025

There is a failure in CS checks, could you run php-cs-fixer on your PR so it fixes it @SanderVerkuil ? 🙏

Circular references aren't handled with promoted properties

Altered the statement to properly handle this case.

Solves jolicode#271
@SanderVerkuil SanderVerkuil force-pushed the fix/271/circular-references-with-promoted-properties branch from 0c4618c to 553e208 Compare July 11, 2025 07:48
@SanderVerkuil
Copy link
Author

@Korbeil Fixed!

@Korbeil Korbeil merged commit 9acfbea into jolicode:main Jul 11, 2025
6 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