Closed (fixed)
Project:
JSON Field
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 May 2024 at 11:54 UTC
Updated:
10 Jun 2024 at 14:44 UTC
Jump to comment: Most recent
There are two issues reported by phpstan:
------ ---------------------------------------------------------------------
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.
------ --------------------------------------------------------------------
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 #2
ptmkenny commentedWorking on it over here: https://www.drupal.org/project/json_field/issues/3450099
Comment #3
damienmckennaOk, thank you.
Comment #4
damienmckennaReopening.
Comment #5
ptmkenny commentedI'm sorry, I misread the issue and didn't realize it was about phpstan. I'll try to read more carefully next time!
Comment #6
damienmckennaNo worries.
Comment #8
damienmckennaThis is almost done but I need to break for a while.
Comment #9
damienmckennaComment #10
damienmckennaCommitted.
Comment #12
damienmckennaI opened a separate issue for the D12 issue reported by phpcs_next: #3450162: 12: Drupal\Core\Render\Element\RenderElement is deprecated
Comment #13
damienmckenna