From dfc5afc28622595f61841636ee310a040ca2fa09 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 20 Apr 2015 10:23:07 -0700 Subject: [PATCH] BagOStuff doc tweaks Change-Id: I0eea84bbbc4c742c07a35a2b157517ad9dd40bb8 --- includes/libs/objectcache/BagOStuff.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/libs/objectcache/BagOStuff.php b/includes/libs/objectcache/BagOStuff.php index 0b791e5a0b..150a7ce601 100644 --- a/includes/libs/objectcache/BagOStuff.php +++ b/includes/libs/objectcache/BagOStuff.php @@ -47,6 +47,7 @@ use Psr\Log\NullLogger; abstract class BagOStuff implements LoggerAwareInterface { private $debugMode = false; + /** @var integer */ protected $lastError = self::ERR_NONE; /** @@ -109,8 +110,9 @@ abstract class BagOStuff implements LoggerAwareInterface { /** * Merge changes into the existing cache value (possibly creating a new one). - * The callback function returns the new value given the current value (possibly false), - * and takes the arguments: (this BagOStuff object, cache key, current value). + * The callback function returns the new value given the current value + * (which will be false if not present), and takes the arguments: + * (this BagOStuff, cache key, current value). * * @param string $key * @param callable $callback Callback method to be executed @@ -334,7 +336,7 @@ abstract class BagOStuff implements LoggerAwareInterface { * Decrease stored value of $key by $value while preserving its TTL * @param string $key * @param int $value - * @return int + * @return int|bool New value or false on failure */ public function decr( $key, $value = 1 ) { return $this->incr( $key, - $value ); -- 2.20.1