Skip to content

Commit 4b12d4f

Browse files
vjikgithub-actions[bot]
authored andcommitted
Apply Rector changes (CI)
1 parent 86e1afd commit 4b12d4f

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/Exception/ErrorException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ private function addXDebugTraceToFatalIfAvailable(): void
130130
}
131131

132132
$ref = new ReflectionProperty(Exception::class, 'trace');
133-
$ref->setAccessible(true);
134133
$ref->setValue($this, $trace);
135134
}
136135
}

tests/Renderer/HtmlRendererTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,18 +354,14 @@ private function invokeMethod(object $object, string $method, array $args = [])
354354
{
355355
$reflection = new ReflectionObject($object);
356356
$method = $reflection->getMethod($method);
357-
$method->setAccessible(true);
358357
$result = $method->invokeArgs($object, $args);
359-
$method->setAccessible(false);
360358
return $result;
361359
}
362360

363361
private function setVendorPaths(HtmlRenderer $renderer, array $vendorPaths): void
364362
{
365363
$reflection = new ReflectionClass($renderer);
366364
$property = $reflection->getProperty('vendorPaths');
367-
$property->setAccessible(true);
368365
$property->setValue($renderer, $vendorPaths);
369-
$property->setAccessible(false);
370366
}
371367
}

0 commit comments

Comments
 (0)