Skip to content

Commit 1e74e69

Browse files
Merge branch '7.2' into 7.3
* 7.2: [Validator] Fix incorrect assertion in `WhenTest` [DoctrineBridge] Fix deprecation with `doctrine/dbal` ^4.3
2 parents ab6c611 + 267f238 commit 1e74e69

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Symfony/Bridge/Doctrine/Tests/Fixtures/SingleAssociationToIntIdEntity.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
use Doctrine\ORM\Mapping\Column;
1515
use Doctrine\ORM\Mapping\Entity;
1616
use Doctrine\ORM\Mapping\Id;
17+
use Doctrine\ORM\Mapping\JoinColumn;
1718
use Doctrine\ORM\Mapping\OneToOne;
1819

1920
#[Entity]
2021
class SingleAssociationToIntIdEntity
2122
{
2223
public function __construct(
2324
#[Id, OneToOne(cascade: ['ALL'])]
25+
#[JoinColumn(nullable: false)]
2426
protected SingleIntIdNoToStringEntity $entity,
2527

2628
#[Column(nullable: true)]

src/Symfony/Component/Validator/Tests/Constraints/WhenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testAttributes()
7575

7676
[$barConstraint] = $metadata->properties['bar']->getConstraints();
7777

78-
self::assertInstanceOf(When::class, $fooConstraint);
78+
self::assertInstanceOf(When::class, $barConstraint);
7979
self::assertSame('false', $barConstraint->expression);
8080
self::assertEquals([
8181
new NotNull(groups: ['foo']),

0 commit comments

Comments
 (0)