Commit ba474221 authored by Alex Moreno Lopez's avatar Alex Moreno Lopez
Browse files

Issue #3229441 by alexmoreno, Ivan Liaskov: TypeError: Argument 5 passed to...

Issue #3229441 by alexmoreno, Ivan Liaskov: TypeError: Argument 5 passed to Drupal\webp\Webp::__construct() must be an instance of Drupal\Core\File\FileSystem
parent 01a2d7bf
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ namespace Drupal\webp;

use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\File\Exception\FileException;
use Drupal\Core\File\FileSystem;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Image\ImageFactory;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
@@ -44,7 +44,7 @@ class Webp {
  /**
   * The file system service.
   *
   * @var \Drupal\Core\File\FileSystem
   * @var Drupal\Core\File\FileSystemInterface;
   */
  protected $fileSystem;

@@ -59,7 +59,7 @@ class Webp {
   *   String translation interface.
   * @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory
   *   Configuration factory.
   * @param \Drupal\Core\File\FileSystem $fileSystem
   * @param Drupal\Core\File\FileSystemInterface; $fileSystem
   *   The file system service.
   */
  public function __construct(ImageFactory $imageFactory, LoggerChannelFactoryInterface $loggerFactory, TranslationInterface $stringTranslation, ConfigFactoryInterface $configFactory, FileSystem $fileSystem) {