Fix call to deprecated method renderPlain()

Created on 21 April 2024, 9 months ago
Updated 19 May 2024, 8 months ago

PhpStan running against Drupal 10.3 reports the following deprecated code:

 ------ ----------------------------------------------------------------------- 
  Line   src/Controller/AutocompleteController.php                              
 ------ ----------------------------------------------------------------------- 
  159    Call to deprecated method renderPlain() of class                       
         Drupal\Core\Render\RendererInterface:                                  
         in drupal:10.3.0 and is removed from drupal:12.0.0. Use                
           \Drupal\Core\Render\RendererInterface::renderInIsolation() instead.  
 ------ ----------------------------------------------------------------------- 

With the help of the new DeprecationHelper class it might be possible to already fix this before we depend on Drupal 10.3? Depends on PhpStan being very clever about this, though, so we’ll have to see.

🐛 Bug report
Status

Fixed

Version

1.0

Component

General code

Created by

🇦🇹Austria drunken monkey Vienna, Austria

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