Skip to content

Commit edfe283

Browse files
committed
test: remove deprecated reflection accessibility calls
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent ea1159e commit edfe283

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tests/php/Unit/Service/Signature/PdfSignatureValidationServiceTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ private function newServiceWithoutConstructor(): PdfSignatureValidationService {
8181
$service = $reflection->newInstanceWithoutConstructor();
8282

8383
$l10nProperty = $reflection->getProperty('l10n');
84-
$l10nProperty->setAccessible(true);
8584
$l10nProperty->setValue($service, $this->l10n);
8685

8786
return $service;
@@ -93,7 +92,6 @@ private function newServiceWithoutConstructor(): PdfSignatureValidationService {
9392
private function invokePrivateMethod(PdfSignatureValidationService $service, string $method, ValidationResult $result): array {
9493
$reflection = new \ReflectionClass($service);
9594
$target = $reflection->getMethod($method);
96-
$target->setAccessible(true);
9795
/** @var array<string, mixed> $mapped */
9896
$mapped = $target->invoke($service, $result);
9997
return $mapped;

0 commit comments

Comments
 (0)