psalm-plugin-drupal
psalm-plugin-drupal copied to clipboard
False Positive ERROR: MissingDependency - modules/custom/paragraphs_tree/tests/src/Functional/ParagraphsTreeUserTest.php:12:38 - Drupal\Tests\paragraphs_tree\Functional\ParagraphsTreeTestBase depends on class or interface drupal\tests\browsertestbase that does not exist (see https://psalm.dev/157) class ParagraphsTreeUserTest extends ParagraphsTreeTestBase {
While running Psalm analysis specifically for the custom modules directory, I encountered the following error:
ERROR: MissingDependency - modules/custom/paragraphs_tree/tests/src/Functional/ParagraphsTreeUserTest.php:12:38 - Drupal\Tests\paragraphs_tree\Functional\ParagraphsTreeTestBase depends on class or interface drupal\tests\browsertestbase that does not exist (see https://psalm.dev/157) class ParagraphsTreeUserTest extends ParagraphsTreeTestBase {
It seems that the class Drupal\Tests\BrowserTestBase is being incorrectly flagged as missing, even though it exists as part of Drupal's core testing framework.