Skip to content

Commit cba253f

Browse files
[2.3] Remove possible call_user_func()
1 parent 785f49c commit cba253f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/HttpCache/TestHttpKernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function callController(Request $request)
7474

7575
$response = new Response($this->body, $this->status, $this->headers);
7676

77-
if (null !== $this->customizer) {
78-
call_user_func($this->customizer, $request, $response);
77+
if (null !== $customizer = $this->customizer) {
78+
$customizer($request, $response);
7979
}
8080

8181
return $response;

0 commit comments

Comments
 (0)