From c2dd804a24fffd10da659b36e65ec8cff7baa51f Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 12 Oct 2019 01:38:35 +0100 Subject: [PATCH] Make Symfony\Contracts\Service\Test\ServiceLocatorTest abstract Also make getServiceLocator protected As per https://github.com/symfony/symfony/issues/33946#issuecomment-541100439 --- src/Symfony/Contracts/Service/Test/ServiceLocatorTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Contracts/Service/Test/ServiceLocatorTest.php b/src/Symfony/Contracts/Service/Test/ServiceLocatorTest.php index 408c017c3e..5ed9149529 100644 --- a/src/Symfony/Contracts/Service/Test/ServiceLocatorTest.php +++ b/src/Symfony/Contracts/Service/Test/ServiceLocatorTest.php @@ -15,9 +15,9 @@ use PHPUnit\Framework\TestCase; use Psr\Container\ContainerInterface; use Symfony\Contracts\Service\ServiceLocatorTrait; -class ServiceLocatorTest extends TestCase +abstract class ServiceLocatorTest extends TestCase { - public function getServiceLocator(array $factories) + protected function getServiceLocator(array $factories) { return new class($factories) implements ContainerInterface { use ServiceLocatorTrait;