Skip to content

Commit 5f98986

Browse files
committed
minor #12529 [2.3] Remove possible call_user_func() (nicolas-grekas)
This PR was merged into the 2.3 branch. Discussion ---------- [2.3] Remove possible call_user_func() | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Merging this in 2.3 enhances performance a bit, but more importantly will ease future merges into 3.0. Commits ------- fad7aba [2.3] Remove possible call_user_func()
2 parents 8e93a59 + cba253f commit 5f98986

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)