Fix phpstan issues

Created on 27 May 2024, 11 months ago

Problem/Motivation

GitLab CI reports two phpstan issues:

 ------ --------------------------------------------------------------------- 
  Line   src/JsonViews.php                                                    
 ------ --------------------------------------------------------------------- 
  22     Call to deprecated function module_load_include():                   
         in drupal:9.4.0 and is removed from drupal:11.0.0.                   
           Use \Drupal::moduleHandler()->loadInclude($module, $type, $name =  
         NULL).                                                               
           Note that including code from uninstalled extensions is no longer  
           supported.                                                         
 ------ --------------------------------------------------------------------- 
 ------ -------------------------------------------------------------------- 
  Line   tests/src/Kernel/JsonItemTest.php                                   
 ------ -------------------------------------------------------------------- 
  380    Method Drupal\Tests\json_field\Kernel\JsonItemTest::fieldSizeMap()  
         should return string but return statement is missing.               
 ------ -------------------------------------------------------------------- 

Let's fix these.

πŸ“Œ Task
Status

Closed: duplicate

Version

1.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