I'm working on Drupal 8 and I create a custom field type so
When I tried to add a field to a content type Drupal give me this error
Fatal error: Cannot redeclare class Drupal\any_to_show\Plugin\Field\FieldType\AnyToShowItem in /var/www/public/sites/all/modules/something/src/Plugin/Field/FieldType/AnyToShowItem.php on line 105
I'm confused because it suppose that the file is the definition and it says that I'm redeclaring the class, I search whole site but nothing.
I was grateful if somebody can help me. thanks in advance