X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FReplacementArray.php;h=46f9358b635d9a1ccf9d0707e5097e364e4fec96;hb=0e4f6e3b8d4b815e9f924720ad536d56c01f456d;hp=4512a4b13d933618a5c63d5044c8338b6cac03a3;hpb=fb7b3eebeb8de47eb42e8d6ccf204106a2d6d9e4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/ReplacementArray.php b/includes/libs/ReplacementArray.php index 4512a4b13d..46f9358b63 100644 --- a/includes/libs/ReplacementArray.php +++ b/includes/libs/ReplacementArray.php @@ -22,14 +22,14 @@ * Wrapper around strtr() that holds replacements */ class ReplacementArray { - private $data = false; + private $data = []; /** * Create an object with the specified replacement array * The array should have the same form as the replacement array for strtr() * @param array $data */ - public function __construct( $data = [] ) { + public function __construct( array $data = [] ) { $this->data = $data; } @@ -44,12 +44,12 @@ class ReplacementArray { * Set the whole replacement array at once * @param array $data */ - public function setArray( $data ) { + public function setArray( array $data ) { $this->data = $data; } /** - * @return array|bool + * @return array */ public function getArray() { return $this->data;