Fix broken tests#995
Closed
danepowell wants to merge 1 commit into
Closed
Conversation
Contributor
Author
|
Sorry, it looks like the errors I mentioned are actually not happening in automated tests. I have no idea why. I get them when running Psalm locally. The breakage in automated tests must be due to something else. Although I think the issues I mentioned are still valid and will become a problem. |
Contributor
|
Thanks for reporting! Will take care of it. Noticed the event dispatcher thing indeed; About the psalm issue : it looks phpunit related, but we are currently not running psalm on the tests. Not sure if it requires fixing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests are broken in HEAD, caused by some Symfony components recently upgrading from 5 to 6.
I fixed the issues in Psalm per advice in these upstream issues:
The bigger issue is a Symfony EventDispatcher deprecated constructor that apparently went unnoticed and was recently completely removed. I'm unable to grok the documentation on how to fix it:
Have you ever considered implementing deprecation scanning or committing your composer.lock and using Dependabot or Violinist to update dependencies? This wouldn't avoid these problems, but it would at least catch them earlier and pinpoint the cause without breaking tests in HEAD.
New Task Checklist:
run()method readable?run()method using the configuration correctly?