Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f43ca7e

Browse filesBrowse 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 ------- 2654acb Fix return type is non-nullable
2 parents aa73858 + 2654acb commit f43ca7e
Copy full SHA for f43ca7e

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎src/Symfony/Component/Form/Tests/Fixtures/TestExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/Fixtures/TestExtension.php
+1-1Lines 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

‎src/Symfony/Component/Routing/Tests/Loader/ObjectLoaderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Tests/Loader/ObjectLoaderTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function supports(mixed $resource, ?string $type = null): bool
104104

105105
protected function getObject(string $id): object
106106
{
107-
return $this->loaderMap[$id] ?? null;
107+
return $this->loaderMap[$id];
108108
}
109109
}
110110

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.