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
12 Class Drupal\Tests\usagov_benefit_finder\Functional\BenefitFinderTest extends unknown class weitzman\DrupalTestTraits\ExistingSiteBase.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
The ExistingSiteBase class is part of the weitzman/drupal-test-traits package.
In USAGov local development site, I fix this error by followings:
composer require --dev weitzman/drupal-test-traits
composer dump-autoload
This ensures that PHPStan can discover classes provided by external packages.
User Story
No response
Acceptance Criteria
Install weitzman/drupal-test-traits dependency for PHPStan to discover class
The text was updated successfully, but these errors were encountered:
Description
Install weitzman/drupal-test-traits dependency for PHPStan to discover class.
/var/www # vendor/bin/phpstan analyse -c phpstan.neon web/modules/custom/usagov_benefit_finder/tests/src/Functional/BenefitFinderTest.php
Line tests/src/Functional/BenefitFinderTest.php
12 Class Drupal\Tests\usagov_benefit_finder\Functional\BenefitFinderTest extends unknown class weitzman\DrupalTestTraits\ExistingSiteBase.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
The ExistingSiteBase class is part of the weitzman/drupal-test-traits package.
In USAGov local development site, I fix this error by followings:
composer require --dev weitzman/drupal-test-traits
composer dump-autoload
This ensures that PHPStan can discover classes provided by external packages.
User Story
No response
Acceptance Criteria
Install weitzman/drupal-test-traits dependency for PHPStan to discover class
The text was updated successfully, but these errors were encountered: