Skip to content

ci: symfony 7.3 deprecations #7192

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

Merged
merged 1 commit into from
Jun 4, 2025
Merged

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Jun 3, 2025

Q A
Branch? 4.1
License MIT

We're mostly ignoring issues related to TypeInfo as we already took care of this on the main branch.

@@ -153,13 +154,23 @@ public function testNormalizeCircularReference(): void

$normalizer->setSerializer($this->prophesize(SerializerInterface::class)->reveal());

// Symfony >= 7.3
$splObject = class_exists(EventStreamResponse::class) ? spl_object_id($circularReferenceEntity) : spl_object_hash($circularReferenceEntity);
Copy link
Contributor

Choose a reason for hiding this comment

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

Without any distinction between the new spl_object_id reference (Sf 7.3) vs the old spl_object_hash, if the test passes I doubt that a circular reference case will actually be tested.
BTW when i found this i wondered it it wasn't a BC of the serializer component even if it's basically something internal to it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes this is my bad it's just that we fixed most of the deprecations on main so I just got the file from there. I'll reapply your patch. And yeah the old code wasn't really necessary anymore.

@soyuka soyuka force-pushed the fix/73-deprecs branch 3 times, most recently from 498649d to b74d4ba Compare June 4, 2025 09:40
@soyuka soyuka merged commit e6e7760 into api-platform:4.1 Jun 4, 2025
109 of 111 checks passed
@soyuka soyuka deleted the fix/73-deprecs branch June 4, 2025 10:13
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