PHPStan returns errors similar to the following one.

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.

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

Command icon 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

apaderno created an issue. See original summary.

avpaderno’s picture

Status: Active » Postponed

I will postpone this, for now, as I would like to first merge some MRs.

avpaderno’s picture

Issue summary: View changes
avpaderno’s picture

The full list of deprecation errors is the following one.

  • Fetching deprecated class constant EXISTS_RENAME of interface Drupal\Core\File\FileSystemInterface: in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\File\FileExists::Rename instead.
  • Fetching deprecated class constant EXISTS_REPLACE of interface Drupal\Core\File\FileSystemInterface: in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\File\FileExists::Replace instead.
  • Class Drupal\render_example\Element\Marquee extends 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\RenderElementBase instead.
  • 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.

avpaderno’s picture

Status: Postponed » Needs review

  • apaderno committed ebfcf531 on 4.0.x
    Issue #3458479: Require at least Drupal 10.3 and remove any usage of...
avpaderno’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.