Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/BladeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public function preStoreUncompiledBlocks(string $input): string

$reflection = new \ReflectionClass($compiler);
$storeVerbatimBlocks = $reflection->getMethod('storeUncompiledBlocks');
$storeVerbatimBlocks->setAccessible(true);

return $storeVerbatimBlocks->invoke($compiler, $input);
}
Expand All @@ -102,7 +101,6 @@ public function preCompileComments(string $input): string

$reflection = new \ReflectionClass($compiler);
$storeVerbatimBlocks = $reflection->getMethod('compileComments');
$storeVerbatimBlocks->setAccessible(true);

return $storeVerbatimBlocks->invoke($compiler, $input);
}
Expand All @@ -129,7 +127,6 @@ public function componentNameToPath($name): string

$reflection = new \ReflectionClass($compiler);
$pathsProperty = $reflection->getProperty('anonymousComponentPaths');
$pathsProperty->setAccessible(true);
$paths = $pathsProperty->getValue($compiler) ?? [];

// Handle namespaced components...
Expand Down Expand Up @@ -224,8 +221,6 @@ protected function freezeObjectProperties(object $object, array $properties)

$property = $reflection->getProperty($name);

$property->setAccessible(true);

$frozen[$name] = $property->getValue($object);

if (! is_numeric($key)) {
Expand All @@ -238,7 +233,6 @@ protected function freezeObjectProperties(object $object, array $properties)
function () use ($reflection, $object, $frozen) {
foreach ($frozen as $name => $value) {
$property = $reflection->getProperty($name);
$property->setAccessible(true);
$property->setValue($object, $value);
}
},
Expand Down