Skip to content

Commit bd81559

Browse files
committed
fix: Remove NOP ReflectionProperty::setAccessible calls
Doesn't do anything since PHP 8.1 and is deprecated since PHP 8.5
1 parent 513b379 commit bd81559

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

tests/lib/Files/Mount/RootMountProviderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ public function testObjectStoreMultiBucket(): void {
117117

118118
$class = new \ReflectionClass($storage);
119119
$prop = $class->getProperty('objectStore');
120-
$prop->setAccessible(true);
121120
/** @var S3 $objectStore */
122121
$objectStore = $prop->getValue($storage);
123122
$this->assertEquals('nextcloud0', $objectStore->getBucket());

tests/lib/Files/ViewTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,6 @@ public static function hookPathProvider(): array {
15391539
public function testHookPaths($root, $path, $shouldEmit): void {
15401540
$filesystemReflection = new \ReflectionClass(Filesystem::class);
15411541
$defaultRootValue = $filesystemReflection->getProperty('defaultInstance');
1542-
$defaultRootValue->setAccessible(true);
15431542
$oldRoot = $defaultRootValue->getValue();
15441543
$defaultView = new View('/foo/files');
15451544
$defaultRootValue->setValue(null, $defaultView);

0 commit comments

Comments
 (0)