From d734c7d019f42afa48f1f3cf55978dac5a4f89cb Mon Sep 17 00:00:00 2001 From: Matthew Setter Date: Sat, 14 Dec 2024 12:03:08 +1000 Subject: [PATCH] Remove unused call to ReflectionProperty::setAccessible Signed-off-by: Matthew Setter --- test/ServiceManagerTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/ServiceManagerTest.php b/test/ServiceManagerTest.php index 3fd452e7..585dade2 100644 --- a/test/ServiceManagerTest.php +++ b/test/ServiceManagerTest.php @@ -385,8 +385,7 @@ public function testDuplicateDelegatorsAreRemoved(): void ]; $serviceManager = new ServiceManager($dependencies); $property = new ReflectionProperty(ServiceManager::class, "delegators"); - $property->setAccessible(true); - $delegators = $property->getValue($serviceManager); + $delegators = $property->getValue($serviceManager); self::assertSame( [ DateTime::class => [