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
Refactors lib/private/Lock #39108
Refactors lib/private/Lock #39108
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dislike the match uses, I find them a lot less readable.
Also there is a problem with how the $ttl property is handled, see comments.
00c6671
to
188cf2c
Compare
Thank you, Come, for reviewing the PR. I really appreciate the timely feedback. I'm suggesting changes that I believe will improve code readability. However, I have no hard feelings if you prefer to revert or disregard them, as you are the maintainer. Having said that, I've received multiple positive feedbacks in previous PRs regarding the use of I've moved the |
188cf2c
to
b4001df
Compare
Yes please revert the |
To improve code readability. Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com> Signed-off-by: Faraz Samapoor <fsa@adlas.at>
b4001df
to
40d9349
Compare
Done. Thank you for the explanation. Squashed the commits as well for a clean history. |
Summary
Following previous PRs taking advantage of PHP8's constructor property promotion in
/core/
namespace, I have also made the required adjustments to the classes in/lib/private/Lock
namespace.The improvements in this PR include:
Checklist