Skip to content

Commit 506bd37

Browse files
Merge branch '4.1' into 4.2
* 4.1: [HttpFoundation] Check file exists before unlink [Console] Fixed #29835: ConfirmationQuestion with default true for answer '0' [Translation] Concatenated translation messages [Form] ensure compatibility with older PHPUnit mocks [Serializer] Docblock about throwing exceptions on serializer [Debug][ErrorHandler] Preserve our error handler when a logger set another one [Form] Changed UrlType input type to text when default_protocol is not null [Bugfix] MemcachedSessionHandler::close() must close connection
2 parents d8e9c7c + 1afa727 commit 506bd37

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/Controller/ControllerTraitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
1717
use Symfony\Component\DependencyInjection\Container;
1818
use Symfony\Component\Form\Form;
19+
use Symfony\Component\Form\FormConfigInterface;
1920
use Symfony\Component\HttpFoundation\BinaryFileResponse;
2021
use Symfony\Component\HttpFoundation\File\File;
2122
use Symfony\Component\HttpFoundation\JsonResponse;
@@ -488,8 +489,7 @@ public function testCreateNotFoundException()
488489

489490
public function testCreateForm()
490491
{
491-
$config = $this->getMockBuilder('Symfony\Component\Form\FormConfigInterface')->getMock();
492-
$form = new Form($config);
492+
$form = new Form($this->getMockBuilder(FormConfigInterface::class)->getMock());
493493

494494
$formFactory = $this->getMockBuilder('Symfony\Component\Form\FormFactoryInterface')->getMock();
495495
$formFactory->expects($this->once())->method('create')->willReturn($form);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"symfony/dom-crawler": "~3.4|~4.0",
4141
"symfony/polyfill-intl-icu": "~1.0",
4242
"symfony/security": "~3.4|~4.0",
43-
"symfony/form": "^4.2",
43+
"symfony/form": "^4.2.3",
4444
"symfony/expression-language": "~3.4|~4.0",
4545
"symfony/messenger": "^4.2",
4646
"symfony/process": "~3.4|~4.0",

0 commit comments

Comments
 (0)