diff --git a/src/Service/Inspector/Cache/BlockCacheCollector.php b/src/Service/Inspector/Cache/BlockCacheCollector.php index 61c58d75..d53c6b98 100644 --- a/src/Service/Inspector/Cache/BlockCacheCollector.php +++ b/src/Service/Inspector/Cache/BlockCacheCollector.php @@ -142,7 +142,6 @@ private function isBlockScopePrivate(BlockInterface $block): bool if (property_exists($block, '_isScopePrivate')) { try { $reflection = new \ReflectionProperty($block, '_isScopePrivate'); - $reflection->setAccessible(true); $isScopePrivate = $reflection->getValue($block); if ($isScopePrivate === true) { return true;