Skip to content

Commit 7805dc0

Browse files
authored
Merge pull request #599 from FriendsOfSymfony/php85
reflection methods and properties are automatically accessible since …
2 parents a44bc8e + 533120c commit 7805dc0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Test/EventDispatchingHttpCacheTestCase.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,10 @@ public function testPreStoreResponseNoStore()
259259

260260
$refHttpCache = new \ReflectionClass(HttpCache::class);
261261
$refStore = $refHttpCache->getProperty('store');
262-
$refStore->setAccessible(true);
263262
$refStore->setValue($httpCache, $store);
264263

265264
$refHttpCache = new \ReflectionObject($httpCache);
266265
$method = $refHttpCache->getMethod('store');
267-
$method->setAccessible(true);
268266
$method->invokeArgs($httpCache, [$request, $regularResponse]);
269267
$this->assertEquals(1, $testListener->preStoreCalls);
270268
}

0 commit comments

Comments
 (0)