Skip to content
Snippets Groups Projects
Commit 4c634e59 authored by Florent Torregrosa's avatar Florent Torregrosa
Browse files

Issue #3456755 by Grimreaper: Fix Core 10.3 deprecations

parent a88d5926
No related branches found
No related tags found
1 merge request!15Issue #3456755 by Grimreaper: Fix Core 10.3 deprecations
Pipeline #206905 passed
name: 'Animated GIF'
type: module
description: 'Allows you to render animated GIFs without image style.'
core_version_requirement: ^10 || ^11
core_version_requirement: ^10.3 || ^11
package: 'Media'
......@@ -4,7 +4,7 @@ declare(strict_types=1);
namespace Drupal\Tests\animated_gif\Traits;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\File\FileExists;
use Drupal\file\FileInterface;
/**
......@@ -53,7 +53,7 @@ trait AnimatedGifTestTrait {
// Copy the source file to public directory.
$source = $this->moduleExtensionList->getPath('animated_gif');
$source .= '/tests/images/' . $fileName;
$this->fileSystem->copy($source, $fileUri, FileSystemInterface::EXISTS_REPLACE);
$this->fileSystem->copy($source, $fileUri, FileExists::Replace);
return $this->entityTypeManager->getStorage('file')->create([
'filename' => $fileName,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment