Comply with Drupal coding standards (32) (Deprecated class constant EXISTS_REPLACE)

Created on 24 April 2024, 7 months ago
Updated 8 May 2024, 6 months ago

Problem/Motivation

  • Fix coding standard errors by phpstan at d.o
    ------ ------------------------------------------------------------ 
      Line   modules/cloud_service_providers/aws_cloud/aws_cloud.module  
     ------ ------------------------------------------------------------ 
      5665   Fetching deprecated class constant EXISTS_REPLACE of class  
             Drupal\Core\File\FileSystemInterface:                       
             in drupal:10.3.0 and is removed from drupal:12.0.0. Use     
             \Drupal\Core\File\FileExists::Replace instead.              
     ------ ------------------------------------------------------------ 
     ------ ------------------------------------------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/k8s/src/Plugin/cloud/launch_template/K8sCloudLaunchTemplatePlugin.php  
     ------ ------------------------------------------------------------------------------------------------------- 
      1497   Fetching deprecated class constant EXISTS_RENAME of class                                              
             Drupal\Core\File\FileSystemInterface:                                                                  
             in drupal:10.3.0 and is removed from drupal:12.0.0. Use                                                
             \Drupal\Core\File\FileExists::Rename instead.                                                          
     ------ ------------------------------------------------------------------------------------------------------- 
     ------ ------------------------------------------------------------ 
      Line   modules/gapps/src/Form/Config/GAppsAdminSettings.php        
     ------ ------------------------------------------------------------ 
      207    Fetching deprecated class constant EXISTS_REPLACE of class  
             Drupal\Core\File\FileSystemInterface:                       
             in drupal:10.3.0 and is removed from drupal:12.0.0. Use     
             \Drupal\Core\File\FileExists::Replace instead.              
     ------ ------------------------------------------------------------ 
     ------ ------------------------------------------------------------ 
      Line   src/Service/CloudService.php                                
     ------ ------------------------------------------------------------ 
      735    Fetching deprecated class constant EXISTS_REPLACE of class  
             Drupal\Core\File\FileSystemInterface:                       
             in drupal:10.3.0 and is removed from drupal:12.0.0. Use     
             \Drupal\Core\File\FileExists::Replace instead.              
     ------ ------------------------------------------------------------ 
     [ERROR] Found 4 errors
πŸ“Œ Task
Status

Fixed

Version

7.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024