8000 [FrameworkBundle] fixed the typehint for Kernel on the Client class (… · sam57/symfony@05d8c42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05d8c42

Browse files
committed
[FrameworkBundle] fixed the typehint for Kernel on the Client class (refs symfony#4897)
1 parent 3ae0b47 commit 05d8c42

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Client.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
namespace Symfony\Bundle\FrameworkBundle;
1313

1414
use Symfony\Component\DependencyInjection\ContainerInterface;
15-
use Symfony\Component\HttpKernel\HttpKernelInterface;
15+
use Symfony\Component\HttpKernel\KernelInterface;
1616
use Symfony\Component\HttpKernel\Client as BaseClient;
1717
use Symfony\Component\HttpKernel\Profiler\Profile as HttpProfile;
1818
use Symfony\Component\HttpFoundation\Request;
1919
use Symfony\Component\HttpFoundation\Response;
20+
use Symfony\Component\BrowserKit\History;
21+
use Symfony\Component\BrowserKit\CookieJar;
2022

2123
/**
2224
* Client simulates a browser and makes requests to a Kernel object.
@@ -28,6 +30,14 @@ class Client extends BaseClient
2830
private $hasPerformedRequest = false;
2931
private $profiler = false;
3032

33+
/**
34+
* @inheritdoc
35+
*/
36+
public function __construct(KernelInterface $kernel, array $server = array(), History $history = null, CookieJar $cookieJar = null)
37+
{
38+
parent::__construct($kernel, $server, $history, $cookieJar);
39+
}
40+
3141
/**
3242
* Returns the container.
3343
*
@@ -41,7 +51,7 @@ public function getContainer()
4151
/**
4252
* Returns the kernel.
4353
*
44-
* @return HttpKernelInterface
54+
* @return KernelInterface
4555
*/
4656
public function getKernel()
4757
{

0 commit comments

Comments
 (0)
0