Skip to content

[Runtime] fix tests #60376

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
May 8, 2025
Merged

[Runtime] fix tests #60376

merged 1 commit into from
May 8, 2025

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented May 7, 2025

Q A
Branch? 6.4
Bug fix? no
New feature? no
Deprecations? no
Issues
License MIT

Since #60076 using a closure as the command code that does not return an integer is deprecated. This means that our tests can trigger deprecations on older branches when the high deps job is run. This usually is not an issue as we silence them with the SYMFONY_DEPRECATIONS_HELPER env var. However, phpt tests are run in a child process where the deprecation error handler of the PHPUnit bridge doesn't step in. Thus, for them deprecations are not silenced leading to failures.

@carsonbot

This comment was marked as outdated.

@xabbuh xabbuh changed the base branch from 7.3 to 6.4 May 7, 2025 21:15
Since symfony#60076 using a closure as the command code that does not return an
integer is deprecated. This means that our tests can trigger deprecations
on older branches when the high deps job is run. This usually is not an
issue as we silence them with the `SYMFONY_DEPRECATIONS_HELPER` env var.
However, phpt tests are run in a child process where the deprecation error
handler of the PHPUnit bridge doesn't step in. Thus, for them deprecations
are not silenced leading to failures.
@fabpot fabpot modified the milestones: 7.3, 6.4 May 8, 2025
@fabpot
Copy link
Member

fabpot commented May 8, 2025

Thank you @xabbuh.

@fabpot fabpot merged commit 1719033 into symfony:6.4 May 8, 2025
9 of 11 checks passed
@xabbuh xabbuh deleted the pr-60360 branch May 8, 2025 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants