Skip to content

Commit fe34ea5

Browse files
authored
Merge pull request #57407 from nextcloud/carl/fix-php-85-deprecation-image
2 parents ae25077 + bd81559 commit fe34ea5

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

lib/private/Image.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,9 +1137,6 @@ public function resizeCopy(int $maxSize): IImage {
11371137
* Destroys the current image and resets the object
11381138
*/
11391139
public function destroy(): void {
1140-
if ($this->valid()) {
1141-
imagedestroy($this->resource);
1142-
}
11431140
$this->resource = false;
11441141
}
11451142

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)