Merge "objectcache: fix comment typo for addBusyCallback()"
[lhc/web/wiklou.git] / includes / libs / objectcache / BagOStuff.php
index a7ef3d5..2350b0a 100644 (file)
@@ -710,7 +710,7 @@ abstract class BagOStuff implements IExpiringStore, LoggerAwareInterface {
         * The callbacks may or may not be called ever, in any particular order.
         * They are likely to be invoked when something WRITE_SYNC is used used.
         * They should follow a caching pattern as shown below, so that any code
-        * using the word will get it's result no matter what happens.
+        * using the work will get it's result no matter what happens.
         * @code
         *     $result = null;
         *     $workCallback = function () use ( &$result ) {
@@ -811,7 +811,7 @@ abstract class BagOStuff implements IExpiringStore, LoggerAwareInterface {
                $key = $keyspace;
                foreach ( $args as $arg ) {
                        $arg = str_replace( ':', '%3A', $arg );
-                       $key = $key . ':' . $arg;
+                       $key .= ':' . $arg;
                }
                return strtr( $key, ' ', '_' );
        }