From e9326379f3c469cdbb89428c1beef57ff395d5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Tue, 4 Feb 2020 17:10:02 +0100 Subject: [PATCH] Fix Environment (#92) --- docs/workers.md | 2 +- lib/Worker/Environment.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/workers.md b/docs/workers.md index e80929c..6adedf7 100644 --- a/docs/workers.md +++ b/docs/workers.md @@ -116,7 +116,7 @@ interface Environment implements \ArrayAccess /** * @param string $key * @param mixed $value Using null for the value deletes the key. - * @param int $ttl Number of seconds until data is automatically deleted. Use 0 for unlimited TTL. + * @param int $ttl Number of seconds until data is automatically deleted. Use null for unlimited TTL. */ public function set(string $key, $value, int $ttl = null); diff --git a/lib/Worker/Environment.php b/lib/Worker/Environment.php index 8b6d2a0..936ea9a 100644 --- a/lib/Worker/Environment.php +++ b/lib/Worker/Environment.php @@ -21,7 +21,7 @@ interface Environment extends \ArrayAccess /** * @param string $key * @param mixed $value Using null for the value deletes the key. - * @param int $ttl Number of seconds until data is automatically deleted. Use 0 for unlimited TTL. + * @param int $ttl Number of seconds until data is automatically deleted. Use null for unlimited TTL. */ public function set(string $key, $value, int $ttl = null);