Fix phpstan issues

Created on 30 August 2024, 5 months ago
Updated 14 September 2024, 4 months ago

Problem/Motivation

Now that the GitLab CI template has been committed, let's fix the issues identified by phpstan:

 ------ ---------------------------------------------------------------------- 
  Line   src/Annotation/JsonRpcMethod.php                                      
 ------ ---------------------------------------------------------------------- 
  124    \Drupal calls should be avoided in classes, use dependency injection  
         instead                                                               
 ------ ---------------------------------------------------------------------- 
 ------ ---------------------------------------------------- 
  Line   src/Controller/HttpController.php                   
 ------ ---------------------------------------------------- 
  91     Call to an undefined static method                  
         Drupal\Core\Cache\CacheableJsonResponse::create().  
  138    Call to an undefined static method                  
         Drupal\Core\Cache\CacheableJsonResponse::create().  
  188    Undefined variable: $content                        
 ------ ---------------------------------------------------- 
📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇯🇵Japan ptmkenny

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