We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79ceb94 commit 1f871e2Copy full SHA for 1f871e2
middlewares/SecurityMiddleware.php
@@ -10,8 +10,7 @@ class SecurityMiddleware implements Middleware
10
public function __invoke(Request $request, $next): Response
11
{
12
foreach ($request->toArray() as $key => $value) {
13
- //TODO: verify if the type of parameter matches the type defined by the bridge in ParameterValidator
14
- if (is_string($value) || is_array($value) && array_all($value, 'is_string')) {
+ if (is_string($value) || is_array($value) && array_all($value, fn($v, $k) => is_string($v))) {
15
continue;
16
}
17
return new Response(render(__DIR__ . '/../templates/error.html.php', [
0 commit comments