Skip to content

Commit 294ca5c

Browse files
Add some missing return types to internal/final classes
1 parent c226051 commit 294ca5c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CacheWarmer/RouterCacheWarmer.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ public function __construct(ContainerInterface $container)
3636

3737
/**
3838
* {@inheritdoc}
39-
*
40-
* @return string[]
4139
*/
42-
public function warmUp(string $cacheDir)
40+
public function warmUp(string $cacheDir): array
4341
{
4442
$router = $this->container->get('router');
4543

@@ -51,7 +49,7 @@ public function warmUp(string $cacheDir)
5149
}
5250

5351
/**
54-
* Checks whether this warmer is optional or not.
52+
* {@inheritdoc}
5553
*/
5654
public function isOptional(): bool
5755
{

Routing/DelegatingLoader.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Symfony\Component\Config\Exception\LoaderLoadException;
1515
use Symfony\Component\Config\Loader\DelegatingLoader as BaseDelegatingLoader;
1616
use Symfony\Component\Config\Loader\LoaderResolverInterface;
17+
use Symfony\Component\Routing\RouteCollection;
1718

1819
/**
1920
* DelegatingLoader delegates route loading to other loaders using a loader resolver.
@@ -42,7 +43,7 @@ public function __construct(LoaderResolverInterface $resolver, array $defaultOpt
4243
/**
4344
* {@inheritdoc}
4445
*/
45-
public function load($resource, string $type = null)
46+
public function load($resource, string $type = null): RouteCollection
4647
{
4748
if ($this->loading) {
4849
// This can happen if a fatal error occurs in parent::load().

0 commit comments

Comments
 (0)