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
Describe the bug
When running the pre-push validation, there is an error in the tests:deprecated:modules stage and the validation fails.
------ ---------------------------------------------------------------------
Line relationships/tests/src/Kernel/RelationshipsBuilderModuleTest.php
------ ---------------------------------------------------------------------
Reflection error: Drupal\Tests\PhpunitCompatibilityTrait not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ---------------------------------------------------------------------
If this turns out to be due to drupal-check, I'm going to remove it entirely from BLT. This is about the tenth time that a new "minor" release has broken something. The phpstan/drupal-check stack is just too unstable. cc @mikemadison13
It sounds like the problem was just with that particular version of phpstan (0.12.43). There have been five new releases since then (in itself a little unnerving), and I couldn't reproduce it on the latest (0.12.48).
I hate to do this, but I think we have to remove the integration, it just causes people too much grief: #4254
Describe the bug
When running the pre-push validation, there is an error in the
tests:deprecated:modules
stage and the validation fails.To Reproduce
Run
git push
Problem seems to be related to this ticket which was opened fairly recently: https://github.com/mglaman/drupal-check/issues/186
The solution was to run
composer require phpstan/phpstan:0.12.42 --dev
because, according to the ticket, phpstan 0.12.43 has a bug.I'm not even sure if this would be considered a blt issue, my apologies if not, but wanted to point it out as it crops up running a blt command.
Expected behavior
The validation should pass.
BLT doctor output
System information
The text was updated successfully, but these errors were encountered: