[RFC][lock] Introduce Shared Lock (or Read/Write Lock) #37752
I know they have to. The question is whether they actually do.
To test this, we would need to write some lock in the old format in Redis (or whatever storage) and then try to acquire the same lock with the new code and ensure it does not break but properly detects a conflict.
For a local test, what you can do is creating 2 projects: one using symfony/lock 5.1 to acquire the lock and hold it, and another one using your new code and trying to acquire a (conflicting) lock (should be tested with both
That was my first idea. But it's more complicated than I thought, and PR might be harder to review. I suggest: