Skip to content

Conversation

@AydinHassan
Copy link
Contributor

@AydinHassan AydinHassan commented Oct 3, 2025

Q A
Branch? 7.3
Bug fix? yes
New feature? no
Deprecations? no
Issues n/a
License MIT

When specifying multiple locks including one which references a service id, and a previous one used an env var, the service id is not converted in to a reference. This is because usedEnvs is not reset in the loop and is passed by reference. Not sure if this is intentional or not but it looks like a mistake to me. A similar reset is done here.

@carsonbot carsonbot added this to the 7.3 milestone Oct 3, 2025
@nicolas-grekas nicolas-grekas modified the milestones: 7.3, 6.4 Oct 3, 2025
@nicolas-grekas nicolas-grekas changed the base branch from 7.3 to 6.4 October 3, 2025 11:47
@nicolas-grekas nicolas-grekas force-pushed the lock-from-service-fix branch 2 times, most recently from 44e7ddc to fcfd9a7 Compare October 3, 2025 12:47
@AydinHassan
Copy link
Contributor Author

AydinHassan commented Oct 3, 2025

@nicolas-grekas I guess this test doesn't work because that feature was only added in 7.2, would you like me to do something or are you taking care?

@nicolas-grekas
Copy link
Member

I'd be happy if you could have a look. To me, the issue exists on 6.4, even if it might manifest itself differently. That's why I rebased on 6.4. Thanks!

@AydinHassan
Copy link
Contributor Author

@nicolas-grekas we could certainly apply the fix to 6.4, but since the result of $usedEnvs is not used anywhere, I don't know how we could test that, effectively there is no change of behaviour with or without the fix in 6.4, at least I can't see.

Only in 7.2 where the new if condition is added can we use my test.

@nicolas-grekas
Copy link
Member

OK, let's go with 7.3 then, sorry for the bad push. Can you reset --hard to that previous commit of yours and push+retarget again?

@nicolas-grekas nicolas-grekas modified the milestones: 6.4, 7.3 Oct 3, 2025
@AydinHassan AydinHassan changed the base branch from 6.4 to 7.3 October 3, 2025 15:49
@AydinHassan AydinHassan force-pushed the lock-from-service-fix branch from fcfd9a7 to 0cf7a9a Compare October 3, 2025 15:49
@AydinHassan
Copy link
Contributor Author

no problem! and done :)

@nicolas-grekas
Copy link
Member

Thank you @AydinHassan.

@nicolas-grekas nicolas-grekas merged commit 0b12ec2 into symfony:7.3 Oct 6, 2025
14 of 22 checks passed
@AydinHassan AydinHassan deleted the lock-from-service-fix branch October 6, 2025 15:34
@fabpot fabpot mentioned this pull request Oct 28, 2025
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.

3 participants