diff options
author | Andreas Gohr <andi@splitbrain.org> | 2023-09-02 14:42:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 14:42:51 +0200 |
commit | 5ff5424d8c81c7123d8656a787af2ff85b3dec21 (patch) | |
tree | 322929ee01d892bb3c927e7fe1238369c647f820 /inc/Input/Input.php | |
parent | 0613df3287b82a98b1e97cf86ed9d4c8fbd16f1c (diff) | |
parent | 91560755291852b8302767d454183a7662666f7e (diff) | |
download | dokuwiki-5ff5424d8c81c7123d8656a787af2ff85b3dec21.tar.gz dokuwiki-5ff5424d8c81c7123d8656a787af2ff85b3dec21.zip |
Merge pull request #4045 from dokuwiki/autofix
Use Rector to autofix code smell
Diffstat (limited to 'inc/Input/Input.php')
-rw-r--r-- | inc/Input/Input.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/Input/Input.php b/inc/Input/Input.php index 3d2426bcc..d08eec675 100644 --- a/inc/Input/Input.php +++ b/inc/Input/Input.php @@ -13,7 +13,6 @@ namespace dokuwiki\Input; */ class Input { - /** @var Post Access $_POST parameters */ public $post; /** @var Get Access $_GET parameters */ @@ -240,13 +239,13 @@ class Input * @param bool $nonempty Return $default if parameter is set but empty() * @return array */ - public function arr($name, $default = array(), $nonempty = false) + public function arr($name, $default = [], $nonempty = false) { if (!isset($this->access[$name])) return $default; if (!is_array($this->access[$name])) return $default; if ($nonempty && empty($this->access[$name])) return $default; - return (array)$this->access[$name]; + return $this->access[$name]; } /** |