Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be13df7

Browse files
minor #52374 Fix tests (OskarStark)
This PR was merged into the 6.4 branch. Discussion ---------- Fix tests | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | -- | License | MIT It looks like `tearDown()` methods sets properties null, which aren't nullable. Commits ------- e4a6cc3 Fix tests
2 parents a9a49a6 + e4a6cc3 commit be13df7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ChoiceToValueTransformerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
class ChoiceToValueTransformerTest extends TestCase
2020
{
21-
protected ChoiceToValueTransformer $transformer;
22-
protected ChoiceToValueTransformer $transformerWithNull;
21+
protected ?ChoiceToValueTransformer $transformer;
22+
protected ?ChoiceToValueTransformer $transformerWithNull;
2323

2424
protected function setUp(): void
2525
{

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class DateTimeToRfc3339TransformerTest extends BaseDateTimeTransformerTestCase
2020
{
2121
use DateTimeEqualsTrait;
2222

23-
protected \DateTime $dateTime;
24-
protected \DateTime $dateTimeWithoutSeconds;
23+
protected ?\DateTime $dateTime;
24+
protected ?\DateTime $dateTimeWithoutSeconds;
2525

2626
protected function setUp(): void
2727
{

0 commit comments

Comments
 (0)