[PR #11276] Remove implicit casts in FileLock.php #12902

Open
opened 2026-01-22 16:15:33 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/11276

State: closed
Merged: Yes


Commit messages hold justifications.

This is the Lock class.

d5ba106803/src/Cache/Lock.php (L10-L25)

Although its constructor is public, it is called exactly once inside src, inside Lock::createLockRead(). This means Lock::$value always contains a non-falsy-string.

**Original Pull Request:** https://github.com/doctrine/orm/pull/11276 **State:** closed **Merged:** Yes --- Commit messages hold justifications. This is the `Lock` class. https://github.com/doctrine/orm/blob/d5ba1068038b1e183c3a0a69e999d76dde58186d/src/Cache/Lock.php#L10-L25 Although its constructor is public, it is called exactly once inside `src`, inside `Lock::createLockRead()`. This means `Lock::$value` always contains a non-falsy-string.
admin added the pull-request label 2026-01-22 16:15:33 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12902