Fix PHPStan error

Created on 29 May 2025, 25 days ago

Problem/Motivation

PHPStan in GitLab CI errors. Let's make it pass!

 ------ ----------------------------------------------------------------------- 
  Line   tests/src/Kernel/ExIconsThemeFunctionTest.php                          
 ------ ----------------------------------------------------------------------- 
  97     Call to deprecated method renderPlain() of class                       
         Drupal\Core\Render\Renderer:                                           
         in drupal:10.3.0 and is removed from drupal:12.0.0. Use                
           \Drupal\Core\Render\RendererInterface::renderInIsolation() instead.  
 ------ ----------------------------------------------------------------------- 
 [ERROR] Found 1 error        

Steps to reproduce

See https://git.drupalcode.org/project/ex_icons/-/jobs/5394666#L58

Proposed resolution

Fix the error.

Remaining tasks

  • Fix the error.

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom Wongjn

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