Skip to content

Commit d4cbc70

Browse files
Merge branch '2.7' into 2.8
* 2.7: (22 commits) Tests and fix for issue in array model data in EntityType field with multiple=true [Form] Fixed PercentToLocalizedStringTransformer to accept both comma and dot as decimal separator, if possible removed useless PHPDoc [Form] Fix FormInterface::submit() annotation PdoSessionHandler: fix advisory lock for pgsql when session.sid_bits_per_character > 4 HttpCache does not consider ESI resources in HEAD requests Fix translation for "This field was not expected" [Routing] Enhance Route(Collection) docblocks Added improvement for accuracy in MoneyToLocalizedStringTransformer. Removed unused private property Use correct verb form in the pull request template Use PHP_MAXPATHLEN in Filesystem. Added null as explicit return type (?TokenInterface) [FrameworkBundle] Fix Routing\DelegatingLoader Render all line breaks according to the exception message [Form] Fix phpdoc [DI] remove confusing code [Form] Fixed GroupSequence with "constraints" option [Validator] Clarify UUID validator behavior [Filesystem] Fixed makePathRelative ...
2 parents 6edfa4b + a11589f commit d4cbc70

File tree

362 files changed

+607
-943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

362 files changed

+607
-943
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
| ------------- | ---
33
| Branch? | 3.4 or master / 2.7, 2.8 or 3.3 <!-- see comment below -->
44
| Bug fix? | yes/no
5-
| New feature? | yes/no <!-- don't forget updating src/**/CHANGELOG.md files -->
5+
| New feature? | yes/no <!-- don't forget to update src/**/CHANGELOG.md files -->
66
| BC breaks? | yes/no
7-
| Deprecations? | yes/no <!-- don't forget updating UPGRADE-*.md files -->
7+
| Deprecations? | yes/no <!-- don't forget to update UPGRADE-*.md files -->
88
| Tests pass? | yes/no
99
| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->
1010
| License | MIT

src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ class ProxyCacheWarmer implements CacheWarmerInterface
2727
private $registry;
2828

2929
/**
30-
* Constructor.
31-
*
3230
* @param ManagerRegistry $registry A ManagerRegistry instance
3331
*/
3432
public function __construct(ManagerRegistry $registry)

src/Symfony/Bridge/Doctrine/DataFixtures/ContainerAwareLoader.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ class ContainerAwareLoader extends Loader
3131
private $container;
3232

3333
/**
34-
* Constructor.
35-
*
3634
* @param ContainerInterface $container A ContainerInterface instance
3735
*/
3836
public function __construct(ContainerInterface $container)

src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ abstract class RegisterMappingsPass implements CompilerPassInterface
9797
private $aliasMap;
9898

9999
/**
100-
* Constructor.
101-
*
102100
* The $managerParameters is an ordered list of container parameters that could provide the
103101
* name of the manager to register these namespaces and alias on. The first non-empty name
104102
* is used, the others skipped.

src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ class DbalSessionHandler implements \SessionHandlerInterface
5454
private $timeCol = 'sess_time';
5555

5656
/**
57-
* Constructor.
58-
*
5957
* @param Connection $con A connection
6058
* @param string $tableName Table name
6159
*/

src/Symfony/Bridge/Doctrine/Logger/DbalLogger.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
use Doctrine\DBAL\Logging\SQLLogger;
1717

1818
/**
19-
* DbalLogger.
20-
*
2119
* @author Fabien Potencier <[email protected]>
2220
*/
2321
class DbalLogger implements SQLLogger
@@ -29,8 +27,6 @@ class DbalLogger implements SQLLogger
2927
protected $stopwatch;
3028

3129
/**
32-
* Constructor.
33-
*
3430
* @param LoggerInterface $logger A LoggerInterface instance
3531
* @param Stopwatch $stopwatch A Stopwatch instance
3632
*/

src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,4 +1516,38 @@ public function testSubmitNullExpandedMultiple()
15161516
$this->assertEquals($collection, $form->getNormData());
15171517
$this->assertSame(array(), $form->getViewData(), 'View data is always an array');
15181518
}
1519+
1520+
public function testSetDataEmptyArraySubmitNullMultiple()
1521+
{
1522+
$emptyArray = array();
1523+
$form = $this->factory->create(static::TESTED_TYPE, null, array(
1524+
'em' => 'default',
1525+
'class' => self::SINGLE_IDENT_CLASS,
1526+
'multiple' => true,
1527+
));
1528+
$form->setData($emptyArray);
1529+
$form->submit(null);
1530+
$this->assertInternalType('array', $form->getData());
1531+
$this->assertEquals(array(), $form->getData());
1532+
$this->assertEquals(array(), $form->getNormData());
1533+
$this->assertSame(array(), $form->getViewData(), 'View data is always an array');
1534+
}
1535+
1536+
public function testSetDataNonEmptyArraySubmitNullMultiple()
1537+
{
1538+
$entity1 = new SingleIntIdEntity(1, 'Foo');
1539+
$this->persist(array($entity1));
1540+
$form = $this->factory->create(static::TESTED_TYPE, null, array(
1541+
'em' => 'default',
1542+
'class' => self::SINGLE_IDENT_CLASS,
1543+
'multiple' => true,
1544+
));
1545+
$existing = array(0 => $entity1);
1546+
$form->setData($existing);
1547+
$form->submit(null);
1548+
$this->assertInternalType('array', $form->getData());
1549+
$this->assertEquals(array(), $form->getData());
1550+
$this->assertEquals(array(), $form->getNormData());
1551+
$this->assertSame(array(), $form->getViewData(), 'View data is always an array');
1552+
}
15191553
}

src/Symfony/Bridge/Doctrine/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"require-dev": {
2424
"symfony/stopwatch": "~2.2|~3.0.0",
2525
"symfony/dependency-injection": "~2.2|~3.0.0",
26-
"symfony/form": "^2.8.18|~3.2.5",
26+
"symfony/form": "^2.8.27|~3.3.10",
2727
"symfony/http-kernel": "~2.2|~3.0.0",
2828
"symfony/property-access": "~2.3|~3.0.0",
2929
"symfony/property-info": "~2.8|3.0",

src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ class ConsoleHandler extends AbstractProcessingHandler implements EventSubscribe
5656
);
5757

5858
/**
59-
* Constructor.
60-
*
6159
* @param OutputInterface|null $output The console output to use (the handler remains disabled when passing null
6260
* until the output is set, e.g. by using console events)
6361
* @param bool $bubble Whether the messages that are handled can bubble up the stack

src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ class ProxyDumper implements DumperInterface
4141
private $classGenerator;
4242

4343
/**
44-
* Constructor.
45-
*
4644
* @param string $salt
4745
*/
4846
public function __construct($salt = '')

0 commit comments

Comments
 (0)