X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Flibs%2FReplacementArray.php;h=46f9358b635d9a1ccf9d0707e5097e364e4fec96;hb=b37fca1cb6c04bd71dec687400ed55a518c19b85;hp=02762f36d1469536c3dd1a7269f23d66ea8d6fa7;hpb=56172358dcbf1e8ee9ba615d65ff798fee0de118;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/ReplacementArray.php b/includes/libs/ReplacementArray.php index 02762f36d1..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; } @@ -37,19 +37,19 @@ class ReplacementArray { * @return array */ public function __sleep() { - return array( 'data' ); + return [ 'data' ]; } /** * 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;