@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | $this->errors = []; |
100 | 100 | $params = $request->getParams(); |
101 | - $params = array_merge((array)$request->getAttribute('routeInfo')[2], $params); |
|
101 | + $params = array_merge((array) $request->getAttribute('routeInfo')[2], $params); |
|
102 | 102 | $this->validate($params, $this->validators); |
103 | 103 | |
104 | 104 | $request = $request->withAttribute($this->errors_name, $this->getErrors()); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | return $params; |
156 | 156 | } else { |
157 | 157 | $firstKey = array_shift($keys); |
158 | - if ($this->isArrayLike($params) && array_key_exists($firstKey, (array)$params)) { |
|
158 | + if ($this->isArrayLike($params) && array_key_exists($firstKey, (array) $params)) { |
|
159 | 159 | $params = (array) $params; |
160 | 160 | $paramValue = $params[$firstKey]; |
161 | 161 |