From 81c257911221b03e22a00b000b4ecd9031b55728 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Mon, 30 Jan 2017 16:10:16 +0300 Subject: [PATCH] array typecast --- source/Spiral/Http/Input/InputManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Spiral/Http/Input/InputManager.php b/source/Spiral/Http/Input/InputManager.php index 3c40d46fd..6764de9ee 100644 --- a/source/Spiral/Http/Input/InputManager.php +++ b/source/Spiral/Http/Input/InputManager.php @@ -221,7 +221,7 @@ public function bag($name) $class = $this->bagAssociations[$name]['class']; $data = call_user_func([$this->request(), $this->bagAssociations[$name]['source']]); - return $this->bagInstances[$name] = new $class($data); + return $this->bagInstances[$name] = new $class((array)$data); } /**