Skip to content

Class constant EXISTS_REPLACE is deprecated #41

@alisonjo315

Description

@alisonjo315

From Upgrade Status report:

Fetching deprecated class constant EXISTS_REPLACE of interface Drupal\Core\File\FileSystemInterface. Deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. Use Drupal\Core\File\FileExists::Replace instead.

In cwd_saml_mapping, this class constant is in two spots:

$file = \Drupal::service('file.repository')->writeData($data, $storage_path . '/' . $name_of_file, FileSystemInterface::EXISTS_REPLACE);

$file = \Drupal::service('file.repository')->writeData($data, $storage_path . '/' . $name_of_file, FileSystemInterface::EXISTS_REPLACE);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions