Closed (fixed)
Project:
JSON-RPC
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2024 at 23:03 UTC
Updated:
14 Sep 2024 at 00:39 UTC
Jump to comment: Most recent
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
------ ----------------------------------------------------
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ptmkenny commentedComment #4
ptmkenny commentedI'll fix the current phpstan issues here, and the D11 issues in the upgrade to D11 issue.
Comment #5
ptmkenny commentedComment #7
ptmkenny commented