Skip to content

Commit 6b8b400

Browse files
Merge branch '6.4' into 7.2
* 6.4: - CS fixes
2 parents 64aaddf + eb0b8e3 commit 6b8b400

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

Middleware/Debug/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function connect(array $params): ConnectionInterface
3636
{
3737
$connection = parent::connect($params);
3838

39-
if ('void' !== (string) (new \ReflectionMethod(DriverInterface\Connection::class, 'commit'))->getReturnType()) {
39+
if ('void' !== (string) (new \ReflectionMethod(ConnectionInterface::class, 'commit'))->getReturnType()) {
4040
return new DBAL3\Connection(
4141
$connection,
4242
$this->debugDataHolder,

Security/RememberMe/DoctrineTokenProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function loadTokenBySeries(string $series): PersistentTokenInterface
6060
$row = $stmt->fetchNumeric() ?: throw new TokenNotFoundException('No token found.');
6161

6262
[$class, $username, $value, $last_used] = $row;
63+
6364
return new PersistentToken($class, $username, $series, $value, new \DateTimeImmutable($last_used));
6465
}
6566

Tests/Form/DataTransformer/CollectionToArrayTransformerTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ public function testTransformReadableCollection()
7474
3 => 'bar',
7575
];
7676

77-
$collection = new class($array) implements ReadableCollection
78-
{
77+
$collection = new class($array) implements ReadableCollection {
7978
public function __construct(private readonly array $array)
8079
{
8180
}
@@ -172,7 +171,7 @@ public function getIterator(): \Traversable
172171

173172
public function count(): int
174173
{
175-
return count($this->array);
174+
return \count($this->array);
176175
}
177176
};
178177

Tests/Security/RememberMe/DoctrineTokenProviderPostgresTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Bridge\Doctrine\Tests\Security\RememberMe;
413

514
use Doctrine\DBAL\Configuration;

0 commit comments

Comments
 (0)