Comply with Drupal coding standards (31) (phpstan)

Created on 5 March 2024, 9 months ago
Updated 19 March 2024, 8 months ago

Problem/Motivation

  • Fix coding standard errors by phpstan at d.o
    ------ ----------------------------------------------------------------------- 
      Line   src/Controller/CloudConfigController.php                               
     ------ ----------------------------------------------------------------------- 
      240    Call to deprecated method renderPlain() of class                       
             Drupal\Core\Render\RendererInterface:                                  
             in drupal:10.3.0 and is removed from drupal:12.0.0. Use                
               \Drupal\Core\Render\RendererInterface::renderInIsolation() instead.  
     ------ ----------------------------------------------------------------------- 
     ------ ----------------------------------------------------------------------- 
      Line   src/Controller/CloudLaunchTemplateController.php                       
     ------ ----------------------------------------------------------------------- 
      251    Call to deprecated method renderPlain() of class                       
             Drupal\Core\Render\RendererInterface:                                  
             in drupal:10.3.0 and is removed from drupal:12.0.0. Use                
               \Drupal\Core\Render\RendererInterface::renderInIsolation() instead.  
     ------ ----------------------------------------------------------------------- 
     ------ ----------------------------------------------------------------------- 
      Line   src/Controller/CloudProjectController.php                              
     ------ ----------------------------------------------------------------------- 
      249    Call to deprecated method renderPlain() of class                       
             Drupal\Core\Render\RendererInterface:                                  
             in drupal:10.3.0 and is removed from drupal:12.0.0. Use                
               \Drupal\Core\Render\RendererInterface::renderInIsolation() instead.  
     ------ ----------------------------------------------------------------------- 
     ------ ----------------------------------------------------------------------- 
      Line   src/Controller/CloudStoreController.php                                
     ------ ----------------------------------------------------------------------- 
      247    Call to deprecated method renderPlain() of class                       
             Drupal\Core\Render\RendererInterface:                                  
             in drupal:10.3.0 and is removed from drupal:12.0.0. Use                
               \Drupal\Core\Render\RendererInterface::renderInIsolation() instead.  
     ------ ----------------------------------------------------------------------- 
     ------ ------------------------------------------------------------------- 
      Line   src/Entity/CloudPermissions.php                                    
     ------ ------------------------------------------------------------------- 
      66     Call to deprecated method getName() of class                       
             Drupal\Core\Extension\ModuleHandlerInterface:                      
             in drupal:10.3.0 and is removed from drupal:12.0.0.                
               Use \Drupal::service('extension.list.module')->getName($module)  
             instead.                                                           
     ------ ------------------------------------------------------------------- 
     [ERROR] Found 5 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