PHP Fatal error: Cannot use Drupal\Core\Plugin\ContainerFactoryPluginInterface as ContainerFactoryPluginInterface because the name is already in use

Created on 27 June 2025, 8 days ago

Problem/Motivation

PHP Fatal error: Cannot use Drupal\Core\Plugin\ContainerFactoryPluginInterface as ContainerFactoryPluginInterface because the name is already in use in /webform_analysis/src/Plugin/Block/WebformAnalysisBlock.php on line 12

Steps to reproduce

When i tried accessing the block layout section with a webform analysis block already placed, i ran into this error

Proposed resolution

Remove duplicate: use Drupal\Core\Plugin\ContainerFactoryPluginInterface; in WebformAnalysisBlock.php

πŸ› Bug report
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡¬Uganda Thomas Kaisuka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024