Skip to content

Commit ebdb5c1

Browse files
authored
Remove calls to ReflectionProperty::setAccessible(true) (#1761)
1 parent 062a19c commit ebdb5c1

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

tests/Collection/CollectionFunctionalTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ public function testWithOptionsInheritsOptions(): void
404404

405405
$rc = new ReflectionClass($clone);
406406
$rp = $rc->getProperty('autoEncryptionEnabled');
407-
$rp->setAccessible(true);
408407

409408
$this->assertSame(true, $rp->getValue($clone));
410409
}
@@ -432,7 +431,6 @@ public function testWithOptionsPassesOptions(): void
432431

433432
$rc = new ReflectionClass($clone);
434433
$rp = $rc->getProperty('autoEncryptionEnabled');
435-
$rp->setAccessible(true);
436434

437435
$this->assertSame(true, $rp->getValue($clone));
438436
}

tests/Database/DatabaseFunctionalTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ public function testWithOptionsInheritsOptions(): void
397397

398398
$rc = new ReflectionClass($clone);
399399
$rp = $rc->getProperty('autoEncryptionEnabled');
400-
$rp->setAccessible(true);
401400

402401
$this->assertSame(true, $rp->getValue($clone));
403402
}
@@ -424,7 +423,6 @@ public function testWithOptionsPassesOptions(): void
424423

425424
$rc = new ReflectionClass($clone);
426425
$rp = $rc->getProperty('autoEncryptionEnabled');
427-
$rp->setAccessible(true);
428426

429427
$this->assertSame(true, $rp->getValue($clone));
430428
}

0 commit comments

Comments
 (0)