Skip to content

Commit 27365e9

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: - HttpKernelInterface::handle parameter and return types
2 parents d94690a + 0e84e79 commit 27365e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

create_framework/http_kernel_httpkernelinterface.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ goal by making our framework implement ``HttpKernelInterface``::
1616
*/
1717
public function handle(
1818
Request $request,
19-
$type = self::MAIN_REQUEST,
20-
$catch = true
21-
);
19+
int $type = self::MAIN_REQUEST,
20+
bool $catch = true
21+
): Response;
2222
}
2323

2424
``HttpKernelInterface`` is probably the most important piece of code in the
@@ -39,8 +39,8 @@ Update your framework so that it implements this interface::
3939

4040
public function handle(
4141
Request $request,
42-
$type = HttpKernelInterface::MAIN_REQUEST,
43-
$catch = true
42+
int $type = HttpKernelInterface::MAIN_REQUEST,
43+
bool $catch = true
4444
) {
4545
// ...
4646
}

0 commit comments

Comments
 (0)