Cannot use Drupal\Core\Url as Url because the name is already in use

Created on 12 September 2023, over 1 year ago

Problem/Motivation

I receive message:
Fatal error: Cannot use Drupal\Core\Url as Url because the name is already in use in /code/web/modules/contrib/views_rss/views_rss.module on line 10

Steps to reproduce

  1. Install Drupal with version 1.0 from views_rss
  2. Update views_rss to 2.1.0 version
  3. Run drush cr before updb

Proposed resolution

Remove `use \Drupal\Core\Url;` because is not used.

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.1

Component

Code

Created by

🇧🇷Brazil edmargomes

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

Comments & Activities

Production build 0.71.5 2024