diff --git a/src/Libs/Params.php b/src/Libs/Params.php index 30b3190..3864afe 100644 --- a/src/Libs/Params.php +++ b/src/Libs/Params.php @@ -6,11 +6,8 @@ class Params { private $data; - public function __construct($args){ - $this->data = []; - foreach($args as $index => $value){ - $this->data[$index] = $value; - } + public function __construct($data){ + $this->data = (array) $data; } public function __isset($index) {