Skip to content

Commit 31872c1

Browse files
committed
Fix compat of the FixturesKernel with Symfony 7
To keep support for Symfony 4.4 which is still supported by browserkit-driver, the value of the constant is hardcoded in the default value of the argument instead of referencing the constant, which was replaced by a new constant name in 5.x with the old name removed in 7.0
1 parent 42375fd commit 31872c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/FixturesKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class FixturesKernel implements HttpKernelInterface
1313
{
14-
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true): Response
14+
public function handle(Request $request, $type = 1 /* self::MAIN_REQUEST */ , $catch = true): Response
1515
{
1616
$this->prepareSession($request);
1717

0 commit comments

Comments
 (0)