Issue #3591906: define the class in the canvas_headless.services.yml.

Added an explicit class: key to the JsComponentCanvasRenderConverter service definition in canvas_headless.services.yml.

The definition previously used Symfony shorthand (no class:). mglaman/phpstan-drupal resolves shorthand service IDs by calling class_exists() during bootstrap, which autoloaded the class and fatally errored on its parent, Drupal\custom_elements\RenderConverter\CanvasRenderConverter, whenever custom_elements was not installed. PHPStan could not analyze anything.

AI-Generated: Yes (Used [Claude Code Opus 5] to find the issue and fix).

Testing instructions

  • phpstan, without the drupal/custom_elements should pass.

Closes #3591906 (closed)

Merge request reports

Loading