Skip to content

Commit 4a1a86a

Browse files
Merge branch '4.3' into 4.4
* 4.3: [4.3] Cleanup tests Cleanup tests [Finder] Prevent unintentional file locks in Windows [FrameworkBundle] Fix about command not showing .env vars [DomCrawler] Fix FileFormField PHPDoc [Mailer] Remove the default dispatcher in AbstractTransport Fix #33395 PHP 5.3 compatibility
2 parents 88b0a54 + 8f99c9e commit 4a1a86a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

HttpBrowser.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@
2323
* to make real HTTP requests.
2424
*
2525
* @author Fabien Potencier <fabien@symfony.com>
26-
*
27-
* @final
2826
*/
2927
class HttpBrowser extends AbstractBrowser
3028
{
3129
private $client;
3230

3331
public function __construct(HttpClientInterface $client = null, History $history = null, CookieJar $cookieJar = null)
3432
{
35-
if (!class_exists(HttpClient::class)) {
33+
if (!$client && !class_exists(HttpClient::class)) {
3634
throw new \LogicException(sprintf('You cannot use "%s" as the HttpClient component is not installed. Try running "composer require symfony/http-client".', __CLASS__));
3735
}
3836

0 commit comments

Comments
 (0)