Skip to content

Commit b67f933

Browse files
[HttpKernel] backport FC compat code
1 parent 0ff1ae9 commit b67f933

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Profiler/Profiler.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,14 @@ public function find($ip, $url, $limit, $method, $start, $end, $statusCode = nul
138138
/**
139139
* Collects data for the given Response.
140140
*
141+
* @param \Throwable|null $exception
142+
*
141143
* @return Profile|null A Profile instance or null if the profiler is disabled
142144
*/
143-
public function collect(Request $request, Response $response, \Exception $exception = null)
145+
public function collect(Request $request, Response $response/*, \Throwable $exception = null*/)
144146
{
147+
$exception = 2 < \func_num_args() ? func_get_arg(2) : null;
148+
145149
if (false === $this->enabled) {
146150
return null;
147151
}

0 commit comments

Comments
 (0)