You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling drush php in drush 12, and there is an entity called Event, that throws this exception:
PHP Fatal error: Cannot declare class Event, because the name is already in use in /var/www/html/vendor/drush/drush/src/Commands/core/CliCommands.php(313) : eval()'d code on line 1
To Reproduce
Create an entity called Event and start the drush php console. Or you could installe e.g. the DANSE module, which brings an entity with that name already.
This is expected to happen with other entity class names as well.
System Configuration
Q
A
Drush version?
12.x
Drupal version?
10.1
PHP version
8.1
OS?
Linux
Additional information
How about prefixing classes with e.g. D?
The text was updated successfully, but these errors were encountered:
weitzman
added a commit
to weitzman/drush
that referenced
this issue
Aug 19, 2023
Describe the bug
When calling
drush php
in drush 12, and there is an entity calledEvent
, that throws this exception:To Reproduce
Create an entity called
Event
and start the drush php console. Or you could installe e.g. the DANSE module, which brings an entity with that name already.This is expected to happen with other entity class names as well.
System Configuration
Additional information
How about prefixing classes with e.g.
D
?The text was updated successfully, but these errors were encountered: