Merge "Fixed "last modified" date fudging on null edit"
[lhc/web/wiklou.git] / includes / libs / replacers / HashtableReplacer.php
index 1bb6fbc..b3c219d 100644 (file)
@@ -28,7 +28,7 @@ class HashtableReplacer extends Replacer {
         * @param array $table
         * @param int $index
         */
-       function __construct( $table, $index = 0 ) {
+       public function __construct( $table, $index = 0 ) {
                $this->table = $table;
                $this->index = $index;
        }
@@ -37,7 +37,7 @@ class HashtableReplacer extends Replacer {
         * @param array $matches
         * @return mixed
         */
-       function replace( $matches ) {
+       public function replace( array $matches ) {
                return $this->table[$matches[$this->index]];
        }
 }