diff --git a/components/lock.rst b/components/lock.rst index 891fdc64818..55ddcf377b3 100644 --- a/components/lock.rst +++ b/components/lock.rst @@ -196,8 +196,8 @@ to reset the TTL to its original value:: $lock->refresh(600); This component also provides two useful methods related to expiring locks: -``getExpiringDate()`` (which returns ``null`` or a ``\DateTimeImmutable`` -object) and ``isExpired()`` (which returns a boolean). +``getRemainingLifetime()`` (which returns ``null`` or a ``float`` +as seconds) and ``isExpired()`` (which returns a boolean). The Owner of The Lock ---------------------