Skip to content

Commit 2e2e32b

Browse files
committed
minor #60286 [Form][Routing] Fix return type is non-nullable (wkania)
This PR was merged into the 6.4 branch. Discussion ---------- [Form][Routing] Fix return type is non-nullable | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT Those are test objects so we don't need to throw any `Symfony\Component\Form\Exception\InvalidArgumentException` like in the `Symfony/Component/Form/AbstractExtension.php` Commits ------- 2654acb6f4c Fix return type is non-nullable
2 parents 5f65b1e + aed57cb commit 2e2e32b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Fixtures/TestExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function addType(FormTypeInterface $type)
3434

3535
public function getType($name): FormTypeInterface
3636
{
37-
return $this->types[$name] ?? null;
37+
return $this->types[$name];
3838
}
3939

4040
public function hasType($name): bool

0 commit comments

Comments
 (0)