@@ -133,7 +133,7 @@ |
||
133 | 133 | $token = self::encode(hash_hmac('sha256', ClientIp::getIp($request), base64_decode($token), true)); |
134 | 134 | |
135 | 135 | return '<input type="hidden" name="'.$this->formIndex.'" value="'.htmlentities($index, ENT_QUOTES, 'UTF-8').'">' |
136 | - .'<input type="hidden" name="'.$this->formToken.'" value="'.htmlentities($token, ENT_QUOTES, 'UTF-8').'">'; |
|
136 | + .'<input type="hidden" name="'.$this->formToken.'" value="'.htmlentities($token, ENT_QUOTES, 'UTF-8').'">'; |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | /** |
@@ -79,7 +79,7 @@ |
||
79 | 79 | * @param callable|string $basePath The base path in which the middleware is created (optional) |
80 | 80 | * @param callable $factory Takes no argument and MUST return a middleware callable or false |
81 | 81 | * |
82 | - * @return callable |
|
82 | + * @return \Closure |
|
83 | 83 | */ |
84 | 84 | public static function create($basePath, callable $factory = null) |
85 | 85 | { |