PHPStan returns errors similar to the following one.
Call to deprecated method
renderPlain()of classDrupal\Core\Render\Renderer: in drupal:10.3.0 and is removed from drupal:12.0.0. Use\Drupal\Core\Render\RendererInterface::renderInIsolation()instead.
All the modules need to require at least Drupal 10.3 and their code be changed to avoid any deprecated class, method, constant, or function.
Issue fork examples-3458479
Show commands
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
avpadernoI will postpone this, for now, as I would like to first merge some MRs.
Comment #3
avpadernoComment #4
avpadernoThe full list of deprecation errors is the following one.
EXISTS_RENAMEof interfaceDrupal\Core\File\FileSystemInterface: in drupal:10.3.0 and is removed from drupal:12.0.0. Use\Drupal\Core\File\FileExists::Renameinstead.EXISTS_REPLACEof interfaceDrupal\Core\File\FileSystemInterface: in drupal:10.3.0 and is removed from drupal:12.0.0. Use\Drupal\Core\File\FileExists::Replaceinstead.Drupal\render_example\Element\Marqueeextends deprecated class Drupal\Core\Render\Element\RenderElement: in drupal:10.3.0 and is removed from drupal:12.0.0. Use\Drupal\Core\Render\Element\RenderElementBaseinstead.renderPlain()of classDrupal\Core\Render\Renderer: in drupal:10.3.0 and is removed from drupal:12.0.0. Use\Drupal\Core\Render\RendererInterface::renderInIsolation()instead.Comment #6
avpadernoComment #8
avpaderno