X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FReplacementArray.php;h=46f9358b635d9a1ccf9d0707e5097e364e4fec96;hb=b328ae4a4ec1e87261f3b4d554f9bb9073c1c6aa;hp=4512a4b13d933618a5c63d5044c8338b6cac03a3;hpb=d716155c8b2d6e4a51a4110195cee7a1794846e8;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;