8000 chore: PHP CS Fixer fixes · symfony/symfony@a900ca8 · GitHub
[go: up one dir, main page]

Skip to content

Commit a900ca8

Browse files
committed
chore: PHP CS Fixer fixes
1 parent 5fca27b commit a900ca8

File tree

1 file changed

+2
-5
lines changed
  • src/Symfony/Component/Runtime/Tests/phpt

1 file changed

+2
-5
lines changed

src/Symfony/Component/Runtime/Tests/phpt/kernel.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616
require __DIR__.'/autoload.php';
1717

18-
class TestKernel implements HttpKernelInterface
19-
{
18+
return fn (array $context) => new class($context['APP_ENV'], $context['SOME_VAR']) implements HttpKernelInterface {
2019
private string $env;
2120
private string $var;
2221

@@ -30,6 +29,4 @@ public function handle(Request $request, $type = self::MAIN_REQUEST, $catch = tr
3029
{
3130
return new Response('OK Kernel (env='.$this->env.') '.$this->var);
3231
}
33-
}
34-
35-
return fn (array $context) => new TestKernel($context['APP_ENV'], $context['SOME_VAR']);
32+
};

0 commit comments

Comments
 (0)
0