Skip to content

Module name declaration inspection flags valid code #834

Closed
@lfolco

Description

@lfolco

Describe the bug (*)

Adding a ExpressionConverter translation to registration.php causes the invalid module name inspection to fire. When using long table names, you can add a translation to the registration.php file in order to have foreign key names that are more descriptive, instead of the ones that it generates like FK_1398WO8U4OR8UEO48ROE4OTJO3. This translation gets flagged as an error.

To Reproduce (*)

Steps to reproduce the behavior:

  1. Open up any registration.php file
  2. Add the following line: \Magento\Framework\DB\ExpressionConverter::addTranslate('subscriber_queue', 'subqueue');
  3. See error "Provided module name does not match expected"

Please complete the following information: (*)

  • OS: MacOS
  • PhpStorm/Intellij version: 2021.1.4
  • Plugin Version: 4.0.0

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions