Fix FileUploadResource::$fileSystem documented type to match the constructor typehint

Created on 3 April 2024, 8 months ago
Updated 17 April 2024, 7 months ago

Problem/Motivation

Dependency injection in the constructor is defined to accept services that implement Drupal\Core\File\FileSystemInterface, but are stored in a property documented to only Drupal\Core\File\FileSystem instances.

A search through the class code does not uncover any calls to methods not defined by FileSystemInterface.

Proposed resolution

Change the documented property variable type to accept any service that implements Drupal\Core\File\FileSystemInterface.

API changes

None

πŸ› Bug report
Status

Fixed

Version

10.2 ✨

Component
File moduleΒ  β†’

Last updated about 8 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States lhridley

Live updates comments and jobs are added and updated live.
  • Documentation

    Primarily changes documentation, not code. For Drupal core issues, select the Documentation component instead of using this tag. In general, component selection is preferred over tag selection.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024