8000 [Routing] Fix ContainerLoader and ObjectLoaderTest · symfony/symfony@81f13f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 81f13f1

Browse files
committed
[Routing] Fix ContainerLoader and ObjectLoaderTest
1 parent d2649f2 commit 81f13f1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Symfony/Component/Routing/Loader/ContainerLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(ContainerInterface $container)
3030
/**
3131
* {@inheritdoc}
3232
*/
33-
public function supports($resource, $type = null)
33+
public function supports($resource, string $type = null)
3434
{
3535
return 'service' === $type;
3636
}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ public function getBadResourceStrings()
6262
];
6363
}
6464

65-
/**
66-
* @group legacy
67-
*/
6865
public function testExceptionOnNoObjectReturned()
6966
{
7067
$this->expectException('LogicException');
@@ -106,6 +103,11 @@ public function supports($resource, string $type = null): bool
106103
return 'service';
107104
}
108105

106+
/**
107+
* {@inheritdoc}
108+
*
109+
* @return object
110+
*/
109111
protected function getObject(string $id)
110112
{
111113
return $this->loaderMap[$id] ?? null;

0 commit comments

Comments
 (0)
0