Skip to content

Commit 515eac6

Browse files
Add missing return types to tests/internal/final methods
1 parent 8806578 commit 515eac6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Tests/Compiler/ResolveInstanceofConditionalsPassTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,15 +376,15 @@ public function reset()
376376
{
377377
}
378378

379-
public function supports(ResourceInterface $metadata)
379+
public function supports(ResourceInterface $metadata): bool
380380
{
381381
}
382382

383-
public function isFresh(ResourceInterface $resource, $timestamp)
383+
public function isFresh(ResourceInterface $resource, $timestamp): bool
384384
{
385385
}
386386

387-
public static function getSubscribedServices()
387+
public static function getSubscribedServices(): array
388388
{
389389
}
390390
}

Tests/ServiceLocatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\DependencyInjection\Tests;
1313

14+
use Psr\Container\ContainerInterface;
1415
use Psr\Container\NotFoundExceptionInterface;
1516
use Symfony\Component\DependencyInjection\Container;
1617
use Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException;
@@ -21,7 +22,7 @@
2122

2223
class ServiceLocatorTest extends BaseServiceLocatorTest
2324
{
24-
public function getServiceLocator(array $factories)
25+
public function getServiceLocator(array $factories): ContainerInterface
2526
{
2627
return new ServiceLocator($factories);
2728
}

0 commit comments

Comments
 (0)